1、通过ip addr命令查看是否设置了ip地址

输入命令:ip addr,若看到有ip地址,则说明已设置正常,若没有则需要设置一个。

ifconfig命令提示command not found

2、查看sbin目录是否存在ipconfig命令

输入命令:cd /sbin 进入该目录

然后输入ls | grep ifconfig

如果没有则说明没有安装该命令,我这已经安装了,所以有

ifconfig命令提示command not found

3、安装net-tools

ifconfig命令在net-tools包中

输入命令:sudo yum install net-tools

安装过程中询问是否安装,输入’y’并回车即可。

4.测试ifconfig命令

ifconfig命令提示command not found

通过测试该命令已经安装好啦

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-04-29
  • 2021-09-23
  • 2022-02-28
  • 2021-06-05
猜你喜欢
  • 2021-08-08
  • 2022-12-23
  • 2021-06-11
  • 2021-11-19
  • 2022-12-23
  • 2021-05-14
  • 2022-12-23
相关资源
相似解决方案