CentOS5.5 NFS不能启动问题解决

 

今天重新启动自己的CentOS5.5系统的时候,突然NFS不能启动,手动启动出现以下错误

# /etc/init.d/nfs restart Shutting down NFS mountd: [FAILED] Shutting down NFS daemon: [FAILED] Shutting down NFS quotas: [FAILED] Shutting down NFS services: [FAILED] Starting NFS services: [ OK ] Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp). [FAILED] Starting NFS daemon: [FAILED] # /etc/init.d/portmap restart Stopping portmap: [FAILED] Starting portmap: portmap: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory  

 

开始以为是前两天系统升级导致的,所以就重新安装的portmap和相关的包,并做好相关配置,但是再次启动时又出现以下错误

# /etc/init.d/nfs restart Shutting down NFS mountd: [FAILED] Shutting down NFS daemon: [FAILED] Shutting down NFS quotas: [FAILED] Shutting down NFS services: [FAILED] Starting NFS services: [ OK ] Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp). [FAILED] Starting NFS daemon: rpc.nfsd: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Permission denied [FAILED]  

 

没有办法,运行了一下restorecon命令

# restorecon -R / 

 

然后再次重新启动机器,问题解决了。

 

后来查了一下restorecon命令的手册,说明如下:

This program is primarily used to set the security context (extended attributes) on one or more files.

It  can  be  run  at any time to correct errors, to add support for new policy, or with the -n option it can just check

whether the file contexts are all as you expect.

 

所以也许开始不需要重新安装包,运行一下这个命令就搞定了,但是没法再做测试了。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值