系統報錯/etc/resolv.conf

淡定的DBA發表於2014-01-07
 

公司一批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部落格 ” ,連結:http://blog.itpub.net/27144762/viewspace-1067713/,如需轉載,請註明出處,否則將追究法律責任。

相關文章