挂载光盘 关闭防火墙
安装服务
[root@localhost ~]#systemctl start nfs启动服务 [root@localhost ~]#cat /etc/services | grep nfs查看端口
[root@localhost ~]#mkdir /mnt/share [root@localhost ~] #vi /etc/exports查看文件 写文件 [root@localhost ~]
#systemctl restart nfs重启服务 [root@localhost ~]#chmod -R 757 root /mnt/share配置结束
[root@localhost ~]#yum install nfs-utils [root@client ~]#showmount -e 192.168.100.30 [root@client ~]#mkdir /mnt/shareing
[root@client ~]#ls /mnt
index.php
#mount -t nfs 192.168.100.30:/mnt/share /mnt/shareing挂载服务器到目录下
df -h 查看挂载信息