我将 NFS 服务器配置为允许来自/24
子网的连接。
当我在客户端上运行时,showmount -e <nfs-server-ip>
会打印配置。
当我rpcinfo -p <nfs-server-ip
在客户端上运行时,会打印以下内容:
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
100024 1 udp 45198 status
100024 1 tcp 60403 status
100005 1 udp 20048 mountd
100005 1 tcp 20048 mountd
100005 2 udp 20048 mountd
100005 2 tcp 20048 mountd
100005 3 udp 20048 mountd
100005 3 tcp 20048 mountd
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
100021 1 udp 56117 nlockmgr
100021 3 udp 56117 nlockmgr
100021 4 udp 56117 nlockmgr
100021 1 tcp 46521 nlockmgr
100021 3 tcp 46521 nlockmgr
100021 4 tcp 46521 nlockmgr
但是,当我尝试在客户端上临时安装时,/nfs/myshare
出现mount.nfs: Connection refused
错误
我尝试rpcbind
在客户端上启用,然后在其中一个客户端中验证并发现这一点rpcbind.service: Referenced but unset environment variable evaluates to an empty string: RPCBIND_OPTIONS
我尝试过尝试,autofs
但感觉我的游戏时间已经结束了......
如何使临时支架按预期工作?