赞
踩
在CentOS中执行
yum install net-tools
报错:
解决方法:
/etc/sysconfig/network-scripts/ifcfg-ens33
文件,修改 ONBOOT=yes/etc/resolv.conf
文件,发现dns服务器列表是空的。配置一个nameserver 192.168.88.2
/etc/resolv.conf
设置成只读避免重启后被覆盖掉。如下:chattr +i 文件路径 ##设置为只读
chattr -i 文件路径 ##取消文件只读
systemctl restart network
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。