-bash: wget: command not found解决方法

傷城~ 2022-02-01 11:49 428阅读 0赞

Linux下使用 wget命令时提示如下信息:

  1. -bash: wget: command not found

很显然,问题出现的原因是由于没有安装wget命令,可以通过以下两种方法来安装:

1、rpm安装

wget的RPM包下载地址:http://www.rpmfind.net/linux/rpm2html/search.php?query=wget(x86-64)

根据自己的Linux系统版本选择合适的RPM包下载,例如 CentOS 7 所需的wget RPM包下载链接如下:

http://www.rpmfind.net/linux/centos/7.6.1810/os/x86_64/Packages/wget-1.14-18.el7.x86_64.rpm

执行如下命令,完成安装:

  1. rpm -ivh wget-1.14-18.el7.x86_64.rpm

2、yum安装

  1. yum -y install wget

发表评论

表情:
评论列表 (有 0 条评论,428人围观)

还没有评论,来说两句吧...

相关阅读