1、-bash: netstat: command not found

原因没有安装net-tools

命令:yum install net-tools

 

2、yum install net-tools下载报错

解决办法:参考:https://blog.csdn.net/blackmai666/article/details/91347214

  • 查看网卡:
  • ip addr

linux -bash: netstat: command not found及下载报错解决方法

  • 编辑网卡文件
cd /etc/sysconfig/network-scripts/
ls

linux -bash: netstat: command not found及下载报错解决方法

vi ifcfg-enp0s3

把ONBOOT=no,改为yes,并保存

linux -bash: netstat: command not found及下载报错解决方法

  • 重启网络
service network restart
  • 安装
yum install net-tools

 

相关文章:

  • 2021-08-23
  • 2021-06-21
  • 2021-07-13
  • 2022-12-23
  • 2021-05-23
  • 2021-05-28
  • 2019-12-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案