分类: LINUX
2014-03-19 09:33:21
| 01 | 在/etc/resolv.conf中增加dns地址,重启网卡服务后,文件内容被清空。 |
| 02 | 解决办法: |
| 03 | 关闭NetworkManager服务 |
| 04 | /etc/init.d/NetworkManager stop |
| 05 | 修改/etc/resolv.conf |
| 06 | vim /etc/resolv.conf |
| 07 | 修改或新增dns地址: |
| 08 | nameserver xxx.xxx.xxx.xxx |
| 09 | 保存退出 |
| 10 | 重启网卡 |
| 11 | /etc/init.d/network restart |
| 12 | 避免重启服务器后配置被清空 |
| 13 | chkconfig NetworkManager off |