Coggle requires JavaScript to display documents.
NFS
ps -ef | grep -E 'rpc|nfs'
A daemon that listens for reboot notifications from other hosts, and manages the list of hosts to be notified when the local system reboots.
WARNING: The file has been changed since reading it!!!
No route to host
Program not registered
rpm -aq nfs-utils portmap rpcbind
sudo yum install nfs-utils rpcbind -y
sudo systemctl start rpcbind # sudo systemctl status rpcbind
rpcinfo -p localhost
rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused
sudo systemctl start nfs # rpcinfo -p localhost
chkconfig nfs on chkconfig rpcbind on chkconfig --list nfs # 检查NFS是否开启 chkconfig --list rpcbind # 检查RPC是否开启
# 注释 /data 10.0.0.0/24(rw,sync)
echo "/data/r_shared 172.16.55.0/24(ro,sync)" >> /etc/exports
showmount -e localhost # 服务端输入这个命令 showmount -e 10.0.0.7 # 客户端输入这个命令
sudo apt install nfs-common
ping 10.0.0.7 telnet 10.0.0.7 111
mount -t nfs 10.0.0.7:/data /mnt echo "/bin/mount -o soft -t nfs 172.16.55.138:/data/r_shared /data/b_r" >> /etc/rc.local # 没有测试过
sudo systemctl reload nfs.service
mkdir /data/w_shared mkdir /data/r_shared chown nfsnobody.nfsnobody /data/*_shared
yum install autofs -y rpm -qa | grep autofs
systemctl restart autofs.service
/mnt /etc/auto.misc --timeout=60 #单位秒
/misc /etc/auto.misc
nfsdata -fstype=nfs 172.16.55.137:/data
*.oldboy.cc
inet 172.16.55.137 netmask 255.255.240.0
/data 172.16.55.0/20(rw,sync)
cat /proc/sys/net/core/wmem_default # 212992 cat /proc/sys/net/core/wmem_max # 212992 echo 8388608 > /proc/sys/net/core/wmem_default # 必须root下执行,sudo不行 echo 16777216 > /proc/sys/net/core/wmem_max
/usr/bin/mount -t nfs 172.16.55.137:/data /mnt
systemctl enable rpcbind.service systemctl enable nfs.service
-r
-o
exportfs -o rw,all_squash,sync 172.16.55.0/20:/tmp
-e
showmount -e localhost showmount -e 172.16.55.137