Linux之nfs服务

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.

验证成功

 

 

 

posted @ 2017-03-21 00:06  qianxiamo  阅读(95)  评论(0编辑  收藏  举报