IT

centOS Mount 마운트 방법 본문

centOS

centOS Mount 마운트 방법

셋글자 2020. 11. 9. 14:47
728x90

centOS Mount 마운트 방법

NFS타입 마운트시 계정이 따로 필요하지 않음.

 

--마운트 할 로컬 디렉토리 생성

# mkdir /local_mount

 

--마운트 명령

-t : 마운트 타입

# mount -t nfs [마운트할 원격폴더 주소] [마운트할 로컬 폴더]

# mount -t nfs test.teststr:/test_directory /local_mount

 

 

--서버 재시작시 자동마운트

# vi /etc/fstab

test.teststr:/test_directory             /local_mount              nfs     auto 0 0