-bash: ping: command not found&&-bash: netstat: command not found

linux 系统可能没有自带 ping 工具。当用到 ping 命令,如果没有安装就会出现 --bash: ping: command not found,需要我们自己安装。

CentOS 安装

yum install iputils -y

Ubuntu 安装

apt-get install inetutils-ping -y

-bash: netstat: command not found

CentOS 安装

yum install net-tools -y

Ubuntu 安装

apt-get install net-tools -y
posted @ 2023-05-04 13:29  .dier  阅读(253)  评论(0编辑  收藏  举报