问题一:描述:找不到IP地址,配置文件ONBOOT是yes状态
![](https://i-blog.csdnimg.cn/blog_migrate/cc2abd31ea00a11c1363bb5d89585609.png)
重启网络,结果报错
![](https://i-blog.csdnimg.cn/blog_migrate/3b1bf41771267407e183bcaf0a7237c0.png)
解决方案:命令
[root@localhost network-scripts]# systemctl stop NetworkManager
[root@localhost network-scripts]# systemctl disable NetworkManager
[root@localhost network-scripts]# systemctl disable NetworkManager
[root@localhost network-scripts]# systemctl restart network
[root@localhost network-scripts]# ip addr
结果如下:
[root@localhost network-scripts]# ip addr
结果如下:
![](https://i-blog.csdnimg.cn/blog_migrate/b6ec6c1549592818cd6a4dd3e7068146.png)
问题二:mini版centos无法使用ifconfig和netstat
解决:命令yum install net-tools
命令 yum provides ifconfig