标签:
配置nfs服务器时,服务器端挂载没有问题,但是客户端挂载时提示:mount.nfs: Connection timed out
解决方法1:
关闭firewalld
# systemctl stop firewalld
# firewall-cmd --state
not running
解决方法2:
rpcinfo -p
显示如下:
program vers proto
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100005 3 tcp 38465 mountd
100005 1 tcp 38466 mountd
100003 3 tcp 2049 nfs
100024 1 udp 51714 status
100024 1 tcp 37589 status
100227 3 tcp 2049 nfs_acl
开放这些端口:
firewall-cmd --permanent --add-port=111/tcp
firewall-cmd --permanent --add-port=38465/tcp
firewall-cmd --permanent --add-port=38466/tcp
firewall-cmd --permanent --add-port=2049/tcp
firewall-cmd --permanent --add-port=51714/tcp
firewall-cmd --permanent --add-port=37589/tcp
然后
firewall-cmd --reload标签:
原文地址:http://www.cnblogs.com/tian-yong/p/4353439.html