介绍:NFS能够实现服务器目录共享给客户端使用linux
NFS 服务器端设置vim
setenforce 0 //临时关闭selinux服务器
service iptables stop //关闭防火墙ide
yum -y install nfs-utils-*spa
yum -y install rpcbind //若是是5版本的请修改成portmaprest
mkdir /testip
chmod 777 test/rpc
vim /etc/exports //配置目录文件it
/test 192.168.49.141(rw)table
service rpcbind restart
service nfs restart //每次修改配置目录后都须要重启这两个
NFS 客户端设置
setenforce 0
service iptables stop
yum -y install nfs-utils
mkdir /test
chmod 777 test/
mount 192.168.49.140:/test /test
***portmap在CentOS 6上已经改名为rpcbind ***