vi /etc/exports
写上你的公享的文件路径,可以写多个
例如
/home 192.168.1.* (rw)
#让192.168.1网段可以访问 /home 并有 读写权限
2.启动服务
service portmap start
service nfs start
3.挂载目录
mount -t nfs ip地址:/home/mnt
记录一下,方便以后查看。
#让192.168.1网段可以访问 /home 并有 读写权限
2.service nfs start
3.mount -t nfs ip地址:/home/mnt
记录一下,方便以后查看。
转载于:https://my.oschina.net/phpsms/blog/136002