//linux之间挂载
服务端:
1、service rpcbind status

2、service nfs status

3、vim  /etc/exports:  服务端共享目录/home/data 192.168.242.*(rw,sync,no_root_squash)

4、关闭防火墙

5、service rpcbind start

6、service nfs start

客户端:
1、service rpcbind start

2、service nfs start

3、mount -t nfs 192.168.242.21[服务端IP]:/srv/www/app/wtcms/webroot/main[服务端挂载路径] /root/testnfs[客户端路径]

4、df -h //查看挂载情况

Logo

更多推荐