[root@roothomes /opt/centos6]$ service iptables stop
iptables: Flushing firewallrules: [ OK ]
iptables: Setting chains to policy ACCEPT:filter [ OK ]
iptables: Unloadingmodules: [ OK ]
客户端:
[root@roothomes /home]$ yum install nfs-utils rpcbind -y
安装完毕!
[root@vmBS00 ~]# service iptablesstop
###查看是否能访问nfs服务
[root@vmBS00 ~]# showmount -e 192.168.1.75
Export list for 192.168.1.75:
/opt/centos6 192.168.1.0/24
[root@vmBS00 ~]# mkdir /opt/centos6
[root@vmBS00 ~]# mount -t nfs 192.168.1.75:/opt/centos6/ /opt/centos6/
[root@vmBS00 ~]# ls /opt/centos6/
thisISnfsFile
###配置开机自动挂载
[root@vmBS00 ~]# vi /etc/fstab
### 添加 #
192.168.1.75:/opt/centos6/ /opt/centos6/ nfsnodev,ro,rsize=32768,wsize=32768 0 0