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 wget2)清除yum缓存:
rm -rf /var/cache/yum/*3)清除所有yum:
yum clean all4)显示仓库列表:
yum repolist5)下载 wget 工具
yum -y install wget