红联Linux门户
Linux帮助

我有个centos频繁断网的问题想咨询下

发布时间:2013-12-14 10:44:26来源:红联作者:nanguaray
查看了/var/log/messages 之后发现有这样的提示:
Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument
在网站打不开的时候。联系了机房。机房接入显示器看。发现系统处于登录界面。
使用last reboot 查看重启记录。发现,。近期并没有重启的信息。
搜索到网上的解决办法:[code]1. $ ls -i /etc/resolv.conf #get inode
8292064 /etc/resolv.conf
2. $ sudo find /etc -inum 8292064#find hard link
/etc/sysconfig/networking/profiles/default/resolv.conf
/etc/resolv.conf
3. $ sudo /usr/sbin/lsof|grep resolv.conf #make sure it is not open
4. $ sudo rm /etc/sysconfig/networking/profiles/default/resolv.conf #delete
5. $ sudo restorecon /etc/resolv.conf
6. $ sudo ln /etc/resolv.conf /etc/sysconfig/networking/profiles/default/resolv.conf #recreate hard link[/code]但并没有得到缓解。即使重启了网络。 另外这个的解决办法对应的提示信息跟我的有些不同 他的错误提示是 Will not restore a file with more than one hard link (/etc/resolv.conf) No such file or directory

问题不同解决方法。也存在差异。
google 了许多。有发现我的这个问题。但是解决的办法仍然是千篇一律。还是上面的这个办法。这个办法。我试过三次了。并没有达到预期效果。
有人说用软链接、 但应该怎么实现呢?
新手刚加入。欢迎大家一起讨论。
文章评论

共有 2 条评论

  1. chushihua 于 2014-01-12 20:21:06发表:

    顶起来…………

  2. Cenetration 于 2013-12-15 08:42:56发表:

    断网以前经常有,不过跟机房连接有关