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
Directory | Allowed IP(Options) |
Options
ro | read only |
rw | read/write |
root_squash | Prevents root users connected remotely from having root privileges and assigns them the user ID for the user nfsnobody |
no_root_squash | Turns off root squashing |
async | Allows the server to write data at non-regular intervals. This setting works best if the exported file system is read-only |
sync | All file writes are committed to the disk before the write request by the client is completed |
wdelay | Improve performance by reducing the number of times the disk must be accessed by separate write commands, reducing write overhead |
no_wdelay | Turns 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