1.二进制安装nfs
2.作为共享存储挂载在三台web的网站根目录下实现,在任意一台web上修改的结果,其余两台都可以看到
[root@localhost ~]# yum install rpcbind
[root@localhost ~]# ls /var/www/html
index.html lost+found web1.txt
[root@localhost ~]# cat /var/www/html/web1.txt
[root@localhost ~]# vim /var/www/html/web1.txt
[root@localhost ~]# cat /var/www/html/web1.txt
this is homework
[root@localhost ~]# echo hello world. >> /var/www/html/web1.txt
[root@localhost ~]# cat /var/www/html/web1.txt
this is homework
hello world.
验证成功