无法启动 NFS 守护进程

无法启动 NFS 守护进程

我正在尝试设置 NFS 共享,但无法启动 NFS 服务:

$ service nfs start

Starting NFS services:                                     [  OK  ]
Starting NFS daemon:                                       [FAILED]

$ service nfs status

rpc.mountd is stopped
nfsd is stopped

端口映射正在运行:

$service portmap status

portmap (pid 6522) is running...

导出内容(真正的导出文件具有有效的 IP 地址而不是 xxx。)

$ cat /etc/exports

/var/www/vhosts/ xxx.xxx.xxx.xxx(ro,sync)

/var/log/messages输出后service nfs start

Apr 14 13:24:18 s15315044 nfsd[2483]: nfssvc: Function not implemented

按照要求:

$ grep NFS /boot/config*

/boot/config-2.6.26.7rootserver-20081028a:CONFIG_NFS_FS=y
/boot/config-2.6.26.7rootserver-20081028a:CONFIG_NFS_V3=y
/boot/config-2.6.26.7rootserver-20081028a:CONFIG_NFS_V3_ACL=y
/boot/config-2.6.26.7rootserver-20081028a:CONFIG_NFS_V4=y
/boot/config-2.6.26.7rootserver-20081028a:# CONFIG_NFSD is not set
/boot/config-2.6.26.7rootserver-20081028a:CONFIG_NFS_ACL_SUPPORT=y
/boot/config-2.6.26.7rootserver-20081028a:CONFIG_NFS_COMMON=y
/boot/config-2.6.27.4rootserver-20081028a:CONFIG_NFS_FS=y
/boot/config-2.6.27.4rootserver-20081028a:CONFIG_NFS_V3=y
/boot/config-2.6.27.4rootserver-20081028a:CONFIG_NFS_V3_ACL=y
/boot/config-2.6.27.4rootserver-20081028a:CONFIG_NFS_V4=y
/boot/config-2.6.27.4rootserver-20081028a:# CONFIG_NFSD is not set
/boot/config-2.6.27.4rootserver-20081028a:CONFIG_NFS_ACL_SUPPORT=y
/boot/config-2.6.27.4rootserver-20081028a:CONFIG_NFS_COMMON=y

这是一个专用服务器:CentOS 版本 5.7

$ cat /proc/version

Linux version 2.6.27.4rootserver-20081028a (root@rpmbuildd-amd64) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Tue Oct 28 06:03:38 EDT 2008

有任何想法吗?

答案1

显然,你的内核没有激活 NFSD 位。它可以是 NFS 客户端,但不能是 NFS 服务器。

/boot/config-2.6.26.4rootserver-20081028a:# CONFIG_NFSD is not set

您应该重新编译内核以启用此功能。

相关内容