Centos6.8 无法修改resolv.conf的问题

来源:互联网 发布:vlookup跨表引用数据 编辑:程序博客网 时间:2024/04/29 13:51
/etc/resolv.conf中增加dns地址,重启网卡服务后,文件内容被清空。解决办法:关闭NetworkManager服务/etc/init.d/NetworkManager stop修改/etc/resolv.confvim /etc/resolv.conf修改或新增dns地址:nameserver xxx.xxx.xxx.xxx保存退出重启网卡/etc/init.d/network restart避免重启服务器后配置被清空chkconfig NetworkManager off以上命令在CentOS6 64位下测试通过

0 0
原创粉丝点击