showmount -e clnt_create: RPC: Port mapper failure - Timed out
. V+ T- R5 O0 G# F% a0 P2 z$ a
5 r2 k" W- q2 G; h% I8 t) F0 }' H! G0 _4 w
在后面添加上nfs服务的地址:: D) W! W2 e6 t' Q f) V
[root@learn ~]# showmount -a 192.168.0.12
8 f: i* I/ ^+ H( S$ V2 ^3 ^3 lAll mount points on 192.168.0.12:
p4 s: H1 f2 ?' R0 s' y) |0 k[root@learn ~]# showmount -e 192.168.0.12, ?" l n/ x/ ^5 I
Export list for 192.168.0.12:
' \7 _( l7 ?6 x, H/ ^7 v/tmp 192.168.0.0/24$ Q) S& T1 V- t& @: H- [( y
" m- }* g" ]" f# ~, k, S
& f( u/ @% c* B% ]
& v$ ]6 }* M6 D; U在客户端查看时,出现如下错误提示: [root@node1 ~]# showmount -e 192.168.122.10
* r5 L; V7 ?$ J0 Nclnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host) 解决方法: 关闭被访问的NFS服务器上的防火墙和selinux(当然只适合个人测试环境),执行systemctl stop firewalld
4 \; l0 v/ L+ |;iptables -F ;setenforce 0,在客户端重新查看showmount -e 192.168.122.10 1 u9 J$ n, u m5 P+ ~
在客户端showmount -e 192.168.122.10遇到以下错误提示,“clnt_create: RPC: Program not registered” , 解决方法: 服务端[root@server /]# rpc.mountd 即可 客户端查看 [root@node1 ~]# showmount -e 192.168.122.10 Export list for server.example.com:
3 {0 B% u% ~; A/tmp *(rw,sync,no_root_squash) # [- O; Q) n! H6 p# I
|