ubuntu - nfs

1.切换到root用户
sudo su -
2.安装NFS服务器所需要的包
apt-get install -y nfs-kernel-server
3.目录
mkdir /data/nfsshare
chmod 777 /data/nfsshare
4.exports
/data/nfsshare *(insecure,rw,sync,no_root_squash,no_subtree_check)
5.重启
service nfs-server restart
6.验证
exportfs -ra
showmount -e 127.0.0.1
show mount
posted @ 2020-04-02 22:22  kylingx  阅读(85)  评论(0编辑  收藏  举报