计算机网络/计算机科学与应用/系统/运维/开发

Centos7配置网络总结

新安装的centos7 没有ifconfig

使用 yum  install  ifconfgi 命令无法上网

先配置网络


打开 vi /etc/sysconfig/network-scripts/ifconfig-eth0   修改 ONBOOT=yes  保存

打开 iv /etc/resolv.conf  增加nameserver 8.8.8.8 保存

重启网络 

service network  restart


先搜索包 

yum  search ifconfig

安装yum ,

yum install net-tools.x86_64

在输入ifconfig命令


centos7

微信小程序 https://www.javascriptcn.com/interview-weixinapp/677f48463d78df11d950b260.html

评论

^