参考该连接rpm -qa rpcbind nfs-tools
//检查是否已安装次工具html
yum install rpcbind nfs-tools -y
vim
yum install net-tools lsof -y
//安装端口检查和服务的工具服务器
systemctl status rpcbind systemctl start rpcbind lsof -i :111 //查看rpcbind 111端口是否开启 netstat -tulnp | grep rpcbind //检查rpcbind 服务
rpcinfo -p localhost
此时nfs 还没开启,因此没太多的注册端口信息工具
检查rpcbind 是否开机启动systemctl is-enabled rpcbind
测试
systemclt start nfs
code
systemclt status nfs
htm
mkdir /data chown -R nfsnobody:nfsnobody /data
vim /etc/exprots /data 192.168.100.0/24(rw,sync) `ps:` 该ip 为nfs客户端的ip `exports -rv` 让配置生效 `cat /var/lib/nfs/etab` 查看nfs 开始的参数,包含默认的参数
mkdir /data2 mount -t nfs 192.168.100.128:/data /data2 df -h
cat /var/lib/nfs/rmtab
blog
yum install rpcbind nfs-tools -y
ip
systemctl start rpcbind
ci
yum install showmount -y
showmount -e 192.168.100.128
//查看客户端是否有权限链接nfs服务端机器
ps: 这里要提早关闭nfs 服务端的防火墙,该命令为
systemctl stop firewalld
mount -t nfs 192.168.100.128:/data /data2
查看 df -h