ifconfig报错command not found的解决方法

ifconfig报错command not found的解决方法

1、ifconfig 执行结果2、查看是否真的没有设置IP地址命令行中输入ip addr,若看到有ip地址,则说明已设置正常,若没有则需要设置一个。

3、设置ip地址的方法:代码语言:shell复制cd /etc/sysconfig/network-scripts代码语言:shell复制vi ifcfg-ens33根据实际情况设置。

4、确认是否安装ifconfig命令:在sbin目录中输入ls | grep ‘ifconfig',没有则说明没有安装

5、安装net-tools,因为该包中包含ifconfig命令:代码语言:shell复制yum install net-tools

相关推荐

365体育app官方下载 游戏行业必备字体50款

游戏行业必备字体50款

📅 08-06 👁️ 6724