1、报错 -bash: wget: command not found

可以重装 wget 工具:

卸载 wget 工具

yum remove wget

下载 wget 工具

yum -y install wget

最后尝试 wget “url” 又OK了,一般是原来的wget初始化有文件损坏造成的。

如果还是不能执行wget url 命令,依旧报错 -bash: wget: command not found,就执行如下命令:

1)卸载 wget 工具

yum remove wget

2)清除yum缓存:

rm -rf /var/cache/yum/*

3)清除所有yum:

yum clean all

4)显示仓库列表:

yum repolist

5)下载 wget 工具

yum -y install wget

参考链接

1. 已经安装完【wget】,但是执行【wget url】时还是提示:“-bash: wget: command not found”

相关阅读

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: