Monday, 4 July 2016

[Ubuntu] Install and Setup NFS Server (NFS서버 설치 및 설정하기)

1. Install packages for NFS server

#> apt-get install nfs-common nfs-kerne-server rpcbind



2. Make directory for sharing

#> mkdir [DIRECTORY]



3. Setup directory and authority

#> vi /etc/exports

DirectoryAllowed IP(Options)

Options
roread only
rwread/write
root_squashPrevents root users connected remotely from having root privileges and assigns them the user ID for the user nfsnobody
no_root_squashTurns off root squashing
asyncAllows the server to write data at non-regular intervals. This setting works best if the exported file system is read-only
syncAll file writes are committed to the disk before the write request by the client is completed
wdelayImprove performance by reducing the number of times the disk must be accessed by separate write commands, reducing write overhead
no_wdelayTurns off this feature, but is only available when using the sync option.




4. Restart NFS Server

#> nfs-kernel-server restart






5. Restart rpcbind

#> rpcbind restart









No comments:

Post a Comment