-bash: ping: command not found 错误解决方法

发布时间:2026-02-04 14:19:42 浏览次数:0

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

CentOS、RockyLinux、Red Hat 安装命令:


1
sudoyuminstalliputils-y

Debian、Ubuntu 安装命令:


1
sudoaptinstallinetutils-ping-y

commandnotfound
需要做网站?需要网络推广?欢迎咨询客户经理 13272073477