2025年nfs文件服务器(win7 nfs文件服务器)

nfs文件服务器(win7 nfs文件服务器)h6 环境 h6 操作系统 CentOS7 9 系统架构 X86 服务端 选择一台服务器为服务端 安装 sudo yum install y rpcbind nfs utils 创建共享目录 mkdir share 赋予共享目录权限 chmod 775 share 编辑配置文件 sudo vi etc exports 添加内容

大家好,我是讯享网,很高兴认识大家。



 <h6>环境</h6> 

讯享网

操作系统: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

小讯
上一篇 2025-05-24 07:04
下一篇 2025-06-08 17:24

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/139843.html