웁스교교주의 이야기

리눅스 nfs 설정 본문

개발/Linux

리눅스 nfs 설정

웁스교교주 2017. 2. 27. 17:38

일단 portmap(rpcbind)와 nfs가 설치되어 있어야 한다.

최신버전은 rpcbind를 쓰는 것 같다.

일단

서버쪽에서

vi /etc/exports 해서

/home/filesystem 192.168.1.2(rw) #rw은 읽기 쓰기 권한

설정 후

service rpcbind start

service nfs start

재부팅시 자동 실행 되도록 서비스에 등록해준다.

chkconfig –level 35 nfs on

chkconfig –level 35 rpcbind on

하면 설정끝

클라언트에서도

service rpcbind start

service nfs start

mount -t nfs 192.168.1.1:/home/filesystem /home/filesystem

이러면 된다.

 

마운트 해제

umount /home/filesystem

재부팅해서도 자동 마운트하게 하는 방법

vi /etc/fstab

192.168.1.1:/home/filesystem /home/filesystem nfs hard 0 0

'개발 > Linux' 카테고리의 다른 글

keepalived 설치 및 설정  (0) 2017.02.27
윈도우에서 리눅스 파일 보기  (0) 2017.02.27
리눅스 connection 개수 늘리기  (0) 2017.02.27
리눅스 php 설치  (0) 2017.02.27
nginx 설치  (0) 2017.02.27