centos7系統:linux
systemctl stop firewalldvim
vi /etc/selinux/configcentos
setenforce 0安全
當在客戶端查看時,出現以下錯誤提示時:服務器
[root@localhost ~]# showmount -e 10.10.209.148
clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)app
解決方法:tcp
被訪問的NFS服務器上的防火牆沒有添加規則,向iptables裏面添加如下查看的全部端口便可(目前解決的方法,固然你也能夠關閉防火牆,不過這樣是比較不安全的,若是你的nfs做用不大,建議你另選別的應用來替代吧!畢竟開那麼多的端口,比較不安全呀!)ide
#vim /etc/sysconfig/iptablescentos7
#service iptables stop //關閉防火牆spa
經過#rpcinfo -p 10.10.209.148
[root@rh01 /]# rpcinfo -p 10.10.209.148program vers proto port service100000 4 tcp 111 portmapper100000 3 tcp 111 portmapper100000 2 tcp 111 portmapper100000 4 udp 111 portmapper100000 3 udp 111 portmapper100000 2 udp 111 portmapper100024 1 udp 52943 status100024 1 tcp 37706 status100011 1 udp 875 rquotad100011 2 udp 875 rquotad100011 1 tcp 875 rquotad100011 2 tcp 875 rquotad100003 2 tcp 2049 nfs100003 3 tcp 2049 nfs100003 4 tcp 2049 nfs100227 2 tcp 2049 nfs_acl100227 3 tcp 2049 nfs_acl100003 2 udp 2049 nfs100003 3 udp 2049 nfs100003 4 udp 2049 nfs100227 2 udp 2049 nfs_acl100227 3 udp 2049 nfs_acl100021 1 udp 37438 nlockmgr100021 3 udp 37438 nlockmgr100021 4 udp 37438 nlockmgr100021 1 tcp 46331 nlockmgr100021 3 tcp 46331 nlockmgr100021 4 tcp 46331 nlockmgr100005 1 udp 57177 mountd100005 1 tcp 43147 mountd100005 2 udp 49154 mountd100005 2 tcp 54810 mountd100005 3 udp 55707 mountd100005 3 tcp 58309 mountd[root@rh01 /]#