Server-side NFS
1 installation:sudo apt-get install nfs-kernerl-server
2 Create a share:
$sudo Vi/etc/exports
Last Plus:/home/xbz/work * (Rw,sync,no_root-squash)
or /home/xbz/work 192.168.1.* (rw,sync,no_root_squash)
The above indicates that access to the 192.168.1.* network segment is allowed
3
Create the shared file above
Mkdir/home/xbz/work
chmod 777-r/home/xbz/work
4 Restart
/etc/init.d/nfs-kernel-serverrestart// has a space.
5 Local test NSF
mount-t NFS 192.168.1.107:/home/xbz/work/mnt// Note space
107 is a local IP address /home/xbz/work is a shared folder of the above settings
client -side NFS (imax6-linux -side)
$ping 192.168.1.107
$mount-O nolock 192.168.1.107:/home/xbz/work/mnt
$CD/mnt
$ls
Reference
http://my.oschina.net/neo600/blog/62078
http://www.oschina.net/question/17_633(Learn more about how vi/etc/exports is added)
Linux--imax Development Environment--NFS