一、服务端
1.安装nfs服务
2.修改/etc/exports(格式:共享目录 域名或IP(参数))
/usr/temp invoice4(rw,sync,no_root_squash)
/usr/temp invoice2(rw,sync,no_root_squash)
3.使之生效
exportfs -rv
二、客户端
1.挂载共享目录(格式: mount 域名或IP:共享目录 本地目录)本地目录必须存在
mount invoice1:/usr/temp /usr/temp
开机就会自动挂载了。
把mount这行加入到/etc/rc.local