NFS文件共享
作用:共享文件
把服务器端的文件系统共享给客户端
服务端
客户端操作
# mount
rpc协议
两台机器必须关闭防火墙和selinux
服务端操作:
1.安装软件
# yum search nfs
# yum install nfs-utils rpcbind -y
2.启动服务
# systemctl start nfs-server
3.配置服务
# vim /etc/exports
共享目录 共享给谁
/test 192.168.26.250/24(rw,no_root_squash,async)
# mkdir /test
# touch /test/a /test/b
# touch /test/{a,b,c,d}
# touch /test/{a..z}
3.重启服务
# systemctl restart nfs-server
4.查看服务
# systemctl status nfs-server
客户端操作:
5.客户端测试
# yum install nfs-utils rpcbind -y
# systemctl start nfs-server
# mkdir /suibian
# mount 192.168.26.160:/test /suibian
4364

被折叠的 条评论
为什么被折叠?



