服务端
yum install nfs-utils rpcbind -y
#####rpm -qa nfs-utils rpcbind
#####id nfsnobody
/etc/init.d/rpcbind start
#####/etc/init.d/rpcbind status
netstat -tnulp|grep rpc
#####rpcinfo -p localhost
/etc/init.d/nfs start
#####/etc/init.d/nfs status
#####rpcinfo -p localhost
#####ps -ef |grep nfs
#####ps -ef |grep rpc
chkconfig nfs on
#####chkconfig --list nfs
chkconfig rpcbind on
#####chkconfig --list rpcbind
vim /etc/exports
/www 192.168.182.0/24(rw,sync)
cd /
mkdir www
touch /www/1.txt
chown -R nfsnobody.nfsnobody /www/
exportfs -rv
mount -t nfs 192.168.182.129:/www /mnt
df -h
客户端
yum install nfs-utils rpcbind -y
/etc/init.d/rpcbind start
chkconfig rpcbind on
service iptables stop
mount -t nfs 192.168.182.129:/www /mnt
df -h
原文地址:http://blog.51cto.com/zuoshou/2122137
时间: 2024-10-09 06:06:16