正常情况下centos7是没有自带ifconfig等命令的库的。

yum search 这个命令我们发现ifconfig这个命令是在net-tools.x86_64这个包里

yum search ifconfig

接下来带有ifconfig命令的包

yum install net-tools.x86_64

然后选项选y

centos7配置ifconfig/netstat等网络命令

都要选y,不然的话不会自动安装。

 

相关文章:

  • 2022-02-09
  • 2021-12-04
  • 2022-12-23
  • 2021-11-23
  • 2022-01-02
  • 2022-01-12
猜你喜欢
  • 2021-11-19
  • 2021-05-26
  • 2021-11-23
  • 2021-11-23
  • 2021-11-19
  • 2022-01-01
相关资源
相似解决方案