安装:
首先查看是否已安装:rpm -qa|grep nfs
如果没有安装的话,执行下面命令进行安装:
yum -y install nfs-utils rpcbind
配置:
sudo vim /etc/exports
然后输入:
1 2 3 4 5 6 7 8 9 10 11 |
# /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). # # Example for NFSv2 and NFSv3: # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check) # # Example for NFSv4: # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check) # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check) # /media/sipl/sipl-nas/kod 172.25.*.*(rw,no_root_squash) |
exportfs -r
启动:
service rpcbind start
service nfs start
重启:
service nfs restart
使用:
开始挂载:sudo mount -t nfs 172.25.17.111:/media/sipl/sipl-nas/kod /www/wwwroot/172.25.17.111/NAS
卸载挂载点:umount -l /www/wwwroot/172.25.17.111/NAS
Ubuntu下:
本文最后更新于2021年9月23日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
最新评论
看看可不可用
还有macapp.org.cn macwk.cn
大佬,IOS17.1能用吗?
没安装桌面的时候就有网,安了就没有了
可是安装好了没有网啊,怎么办大佬
您好,我这边需要跟您沟通下亚马逊云科技文章合作事宜,您看可以加个微信,详聊一下嘛
感谢分享。。。
试一下好用不,顺便感谢下