在服务器上设置NFS之后,来自客户端的rpcinfo -p servername将返回错误消息。
rpcinfo: couldn't find a suitable transport通过tcpdump检查,连接性很好。在服务器上,hosts.allow包含必要的条目。/etc/netconfig包含以下内容
# This config file is part of some non-installed packages (like nfs-utils)
#
# In case you install a tool that requires this file, please comment out the following lines:
#
# from https://highon.coffee/blog/security-harden-centos-7/
#
# udp6 tpi_clts v inet6 udp - -
# tcp6 tpi_cots_ord v inet6 tcp - -
udp tpi_clts v inet udp - -
tcp tpi_cots_ord v inet tcp - -
#udp6 tpi_clts v inet6 udp - -
#tcp6 tpi_cots_ord v inet6 tcp - -
rawip tpi_raw - inet - - -
local tpi_cots_ord - loopback - - -
unix tpi_cots_ord - loopback - - -有什么想法吗?
发布于 2020-05-14 07:36:34
信不信由你,这个问题是由文件/etc/netconfig中主注释块后的空行引起的。删除空行后,挂载工作正常。
https://serverfault.com/questions/1016920
复制相似问题