生产环境:
服务端centos7.2,客户端:ubuntu16.04
挂载出现的故障:
root@HDCtrl100:/mnt# mount -t nfs 10.0.100.208:/backup_usb /mnt/backup_usb
mount.nfs: access denied by server while mounting 10.0.100.208:/backup_usb #报错。
原因:
//如果端口号大于1024,则需要将 insecure 选项加入到配置文件(/etc/exports)相关选项中mount客户端才能正常工作
解决办法:(ubuntu挂载nfs出现有故障)
[root@zabbix-server ~]# cat /etc/exports #new example /backup_usb *(insecure,rw,sync,no_root_squash,anonuid=888,anongid=888) #不能使用IP地址,一定要用*,加insecure
#重启服务
[root@zabbix-server ~]# service nfs restart Redirecting to /bin/systemctl restart nfs.service