* 서버 설정
apt-get install nfs-common nfs-kernel-server rpcbind
/etc/exports
/home/xyz 192.168.0.X(rw,sync,no_root_squash,no_subtree_check)
/home/123 *(rw,sync,no_root_squash,no_subtree_check)
[/경로] [허용할 IP주소. *은 모두허용](옵션들)
(IP주소와 옵션은 붙어있다. 띄어쓰기하면 기본값으로 열리니 주의)
옵션은 다음과 같은 선택지가 있음
ro : 읽기 전용
rw : 읽기 및 쓰기 가능
no_root_squash : 클라이언트쪽 root도 서버쪽 root와 같은권한가짐
no_all_squash : root이외 모든사용자에대해 UID가 같으면 같은권한을가짐
sync : 서버와 클라이언트사이에 sync를 맞춤
insecure : 인증 안되도 접속허가
서버 재시작
service nfs-kernel-server restart
service rpcbind restart
* 클라이언트 설정
apt-get install nfs-common
mount -t nfs [IP]:[서버_경로] [클라이언트_경로]
> mount -t nfs 192.168.0.2:/home/xyz /home/xyz