전체 글(702)
-
Ubuntu rm: cannot remove '{디렉토리}': Is a directory
해당 디렉토리가 마운트되어 있는 경우# 확인mount | grep {디렉토리}# unmountsudo umount {디렉토리}# 디렉토리 삭제rm -rf {디렉토리}
2024.12.31 -
Ubuntu exportfs 명령어 옵션 2024.12.31
-
Ubuntu NFS mount
Server# 모듈 설치sudo apt updatesudo apt install nfs-kernel-server -y# 디렉토리 생성sudo mkdir -p /nfs/tempsudo chown -R test:test /nfs/tempsudo chmod -R 770 /nfs/temp# NFS 설정파일 수정 및 적용sudo vi /etc/exports--------------/nfs/temp {IP 대역}(rw,sync,no_subtree_check,no_root_squash) {IP 대역}(rw,sync,no_subtree_check,no_root_squash)--------------sudo exportfs -a# 확인sudo exportfs -v# 서비스 재시작 및 확인sudo systemctl res..
2024.12.31 -
Minikube mount
hostPath: path: /temp/test # Path in Minikube VM, not host filesystemhostPath의 path는 Minikube의 디렉토리임minikube sshcd /temp/testhost 서버와 Minikube를 연동하기# host 섭mkdir /temp/testminkube mount /temp/test:/temp/test마운트가 안되는 경우,Minikube가 unmount되어 있어야 함minikube sshsudo umount /temp/testexitMinikube 디렉토리안에 파일이 없어야 함minikube sshsudo rm -rf /temp/test/*exitminikube mount는 프로세스가 작동할때만 적용됨개발에서 사용하는 건 문제없지만..
2024.12.31 -
Minikube host directory 마운트하기
apiVersion: v1kind: Podmetadata: name: host-mount-podspec: containers: - name: test-container image: busybox command: [ "sleep", "3600" ] volumeMounts: - mountPath: /data name: host-volume volumes: - name: host-volume hostPath: path: /mnt/data특정 그룹으로 마운트하기(작동안함)apiVersion: v1kind: Podmetadata: name: host-mount-podspec: securityContext: fsG..
2024.12.31 -
Nginx 파일 업로드 용량 제한 조치
용량이 충분하지 않을 경우 에러아래와 같이 브라우져에 찍힘413 (Request Entity Too Large)access log에도 413이 찍힘nginx.conf 설정nginx는 업로드 기본값이 1M아래 중 1개만 하면 됨http { client_max_body_size 100M;}server { listen 80; server_name example.com; client_max_body_size 100M;}location /upload { client_max_body_size 100M;}nginx에 적용sudo systemctl reload nginxnginx 설정을 변경했으나, 계속 에러 발생하면 그 뒤단에 있는 서버들을 확인해야 함(nginx ingress contro..
2024.12.30