我试图build立一个NFS共享,但我不能启动NFS服务:
$ service nfs start Starting NFS services: [ OK ] Starting NFS daemon: [FAILED] $ service nfs status rpc.mountd is stopped nfsd is stopped
Portmap正在运行:
$service portmap status portmap (pid 6522) is running...
导出内容(实际导出文件具有有效的IP地址而不是xxx)。
$ cat /etc/exports /var/www/vhosts/ xxx.xxx.xxx.xxx(ro,sync)
service nfs start
后输出/var/log/messages
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
有任何想法吗?
显然,你的内核没有激活NFSD位。 它可以是NFS客户端,但不是NFS服务器。
/boot/config-2.6.26.4rootserver-20081028a:# CONFIG_NFSD is not set
你应该重新编译内核来启用它。