我无法启动NFS服务。 开始时没有错误。 但是服务之后就停止了。 / var / log / messages中根本没有消息。 同样发生在rpcbind服务器上。 任何想法这可能是什么? 我也试图禁用iptables。
[root@server1 ~]# service nfs start [root@server1 ~]# service nfs status rpc.svcgssd is stopped rpc.mountd is stopped nfsd is stopped rpc.rquotad is stopped [root@server1 ~]# service rpcbind start [root@server1 ~]# service rpcbind status rpcbind is stopped [root@server1 ~]# cat /etc/exports /tmp *(ro) [root@server1 ~]# chkconfig --list | egrep '(rpcbind|nfs)' nfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off nfslock 0:off 1:off 2:on 3:on 4:on 5:on 6:off rpcbind 0:off 1:off 2:on 3:on 4:on 5:on 6:off
问题解决了。 看起来像/etc/syconfig/network文件中有dos字符。
dos2unix /etc/sysconfig/network
解决了它。
如果有人遇到这个…我有完全相同的症状与oracle /红帽子6.4安装和基本的nfs设置。 服务启动rpcbind,没有响应和服务总是停止。 与服务nfs start一样。 echo $? 这个链接让我看看启动脚本,在我的情况下是失败的:
# Check that networking is up. [ "${NETWORKING}" != "yes" ] && exit 6
投入后
NETWORKING=yes
在/ etc / sysconfig / network nfs启动。