参考:https://www.cnblogs.com/dunitian/p/4974761.html

   

   1、   查看:echo $PATH
解决ifconfig command not found 问题
   2、

    (如果没看见 /sbin)【我们这显然不是这个问题】这个一般都是因为配置没弄好,永久解决:

      打开/etc/profile文件,在其中输入export PATH=$PATH:/sbin

解决ifconfig command not found 问题

3、

在 /(根目录)里面查找 name(名字)是 ifconfig 的东东

解决ifconfig command not found 问题

说明ifconfig换了

查看显卡信息: ip addr

ip addr

解决ifconfig command not found 问题

发现木有(看 2:eth0 没有ipv4)

跳转到 /etc/sysconfig/network-scripts 目录

cd /etc/sysconfig/network-scripts
解决ifconfig command not found 问题

vim ifcfg-ens33 修改成这样:

解决ifconfig command not found 问题


保存

reboot重启

解决ifconfig command not found 问题


最后执行:yum install -y net-tools 安装:net-tools 一步步装完就OK了



相关文章: