Linux服务器提示“-bash: wget: command not found”,但我已经安装成功
一、问题描述
在Linux服务器执行命令 “yum install wget” ,提示安装成功。但是在使用 wget “url” 下载资源时,提示 “-bash: wget: command not found” ,明明已经提示安装成功,结果无法执行,很苦恼。
二、解决方案
1、先执行 “yum remove wget” 卸载
2、再执行 “yum -y install wget”
3、最后尝试 wget "url" 又OK了。
上述问题不知道具体是什么原因,先卸载再要加上参数 -y 就好了。

浙公网安备 33010602011771号