环境
操作系统:CentOS7.9
系统架构:X86
服务端
选择一台服务器为服务端。
①安装:sudo yum install -y rpcbind nfs-utils
②创建共享目录:mkdir /share
③赋予共享目录权限:chmod 775 /share
④编辑配置文件:sudo vi /etc/exports
添加内容:
/share/ 客户端ip/22(rw,no_root_squash,no_all_squash,sync,insecure)
⑤使配置文件生效:exportfs -r
⑥启动:
sudo systemctl start rpcbind
sudo systemctl start nfs
⑥设置开机启动:
sudo systemctl enable rpcbind
sudo systemctl enable nfs
⑦查看是否生效:showmount -e localhost
客户端
其余服务器为客户端。
①安装:sudo yum install -y rpcbind
②查看服务端:showmount -e 服务端ip
③创建共享目录:mkdir /share
④挂载测试: mount -t nfs 服务端ip:/share /share
⑤设置开机自动挂载:vi /etc/fstab
添加内容:
服务端ip:/share /share nfs defaults 0 0
⑥重载:mount -a
到此这篇nfs文件服务器(win7 nfs文件服务器)的文章就介绍到这了,更多相关内容请继续浏览下面的相关推荐文章,希望大家都能在编程的领域有一番成就!版权声明:
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权、违法违规、事实不符,请将相关资料发送至xkadmin@xkablog.com进行投诉反馈,一经查实,立即处理!
转载请注明出处,原文链接:https://www.xkablog.com/hd-wfwjg/51764.html