ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 系统报错/etc/resolv.conf

系统报错/etc/resolv.conf

原创 Linux操作系统 作者:淡定的DBA 时间:2014-01-07 05:22:29 0 删除 编辑
 

公司一批Java 中间件 AP,出现了如下系统报错

报错信息:
系统报错“
restorecond: will not restore a file with more than one hard link (/etc/resolv.conf) no such file or directory”


办法1:

1.# ls -i /etc/resolv.conf           ##   命令执行效果: 13408656  /etc/resolv.conf
2. # find /etc -inum 13408656  ##   命令执行效果:/etc/resolv.conf

 /etc/sysconfig/networking/profiles/default/resolv.conf
3. #/usr/sbin/lsof|grep resolv.conf  

4.# rm /etc/sysconfig/networking/profiles/default/resolv.conf     

5. # restorecon /etc/resolv.conf
6. #ln /etc/resolv.conf/etc/sysconfig/networking/profiles/default/resolv.conf 

建议做完这些:service network restart
root case:
该AP为双网卡服务器,office 网卡有DNS,但是我们基于应用优先配置了,ap 网卡网段的IP地址,所以会有这样的错误


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27144762/viewspace-1067713/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-07-09

  • 博文量
    42
  • 访问量
    395554