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