NFS安裝1.0版本
阿新 • • 發佈:2018-05-30
nfs服務端
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 service iptables stop
mount -t nfs 192.168.182.129:/www /mnt
df -h
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 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
mount -t nfs 192.168.182.129:/www /mnt
df -h
NFS安裝1.0版本