[root@master ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root@master ~]# uname -r
2.6.32-358.el6.x86_64
[root@master ~]# uname -m
x86_64
rpm -aq nfs-utils portmap rpcbind
LANG=EN
yum grouplist
yum install nfs-utils rpcbind �Cy
rpm -aq nfs-utils portmap rpcbind
/etc/init.d/rpcbind start
ps -ef|grep rpc
/etc/init.d/rpcbind status
rpcinfo -p localhost
/etc/init.d/rpcbind start
rpcinfo -p localhost
chkconfig nfs on
chkconfig rpcbind on
chkconfig --list nfs
chkconfig --list rpcbind
[root@master ~]# cat /etc/exports
#shared data for web by wenjing at 20151002
/data 192.168.1.1/24(rw,sync)
mkdir /data
ll /data
chown -R nfsnobody.nfsnobody /data
vi a.sh
cp a.sh b.sh
/etc/init.d/nfs reload
showmount -e localhost
[root@slave ~]# hostname nfsclient
[root@slave ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root@slave ~]# uname -r
2.6.32-358.el6.x86_64
[root@slave ~]# uname -m
x86_64
rpm -aq nfs-utils portmap rpcbind
yum groupinstall “NFS file server” �Cy
yum �Caq nfs-utils portmap rpcbind
/etc/init.d/rpcbind start
/etc/init.d/rpcbind status
chkconfig rpcbind on
chkconfig --list rpcbind
showmount -e 192.168.1.132
故障排除:
ping 192.168.1.132
telnet 192.168.1.132 111
mount -t nfs 192.168.1.132:/data /mnt
cd /mnt
# ls -l
总用量 0
-rw-r--r-- 1 root root 0 10月 2 16:09 a.sh
-rw-r--r-- 1 root root 0 10月 2 16:09 b.sh
echo "mount -t nfs 192.168.1.132:/data /mnt">>/etc/rc.local