linux -- 解决“ -bash: ifconfig:command not found “ 和 “ -bash: netstat:command not found “问题

一、报错信息

-bash: ifconfig:command not found
-bash: netstat:command not found 
[root@xsnq ~]# netstat -nalt
-bash: netstat: 未找到命令
[root@xsnq ~]# ifconfig
-bash: ifconfig: 未找到命令

二、报错原因

没有安装网络工具。

三、解决方法

yum -y install net-tools

本文出现任何错误,请留言批评指正。

猜你喜欢

转载自blog.csdn.net/weixin_46623617/article/details/110655283