“Ubuntu: set nfs server”版本间的差异
来自cslt Wiki
第6行: | 第6行: | ||
2. install nfs-common on the client computer | 2. install nfs-common on the client computer | ||
− | |||
a) sudo apt-get update | a) sudo apt-get update | ||
− | |||
b) sudo apt-get install nfs-common | b) sudo apt-get install nfs-common | ||
3. edit /etc/exports on the host server to share your folder | 3. edit /etc/exports on the host server to share your folder | ||
− | |||
a) add "directory_to_share client(share_option1,...,share_optionN)" to /etc/exports | a) add "directory_to_share client(share_option1,...,share_optionN)" to /etc/exports | ||
− | |||
example: assume your client IP is 111.111.111.111 | example: assume your client IP is 111.111.111.111 | ||
− | |||
/home 111.111.111.111(rw,sync,no_root_squash,no_subtree_check) | /home 111.111.111.111(rw,sync,no_root_squash,no_subtree_check) | ||
− | |||
/var/nfs 111.111.111.111(rw,sync,no_subtree_check) | /var/nfs 111.111.111.111(rw,sync,no_subtree_check) |
2016年9月2日 (五) 04:10的版本
How To Set Up an NFS Mount on Ubuntu 14.04
1. install nfs-kernel-server on the host server
a) sudo apt-get update b) sudo apt-get install nfs-kernel-server
2. install nfs-common on the client computer
a) sudo apt-get update b) sudo apt-get install nfs-common
3. edit /etc/exports on the host server to share your folder
a) add "directory_to_share client(share_option1,...,share_optionN)" to /etc/exports example: assume your client IP is 111.111.111.111 /home 111.111.111.111(rw,sync,no_root_squash,no_subtree_check) /var/nfs 111.111.111.111(rw,sync,no_subtree_check)