在部署项目环境时,发现报如下错误
[root@izbp1gb52c9au4ljt3u7w8z test]# wget http://nginx.org/download/nginx-1.13.7.tar.gz
-bash: wget: command not found
[root@izbp1gb52c9au4ljt3u7w8z test]#
看到了这个错误,我就去安装 wget
[root@izbp1gb52c9au4ljt3u7w8z test]# yum -y install wget
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* centos-sclo-rh: mirrors.aliyun.com
* centos-sclo-sclo: mirrors.163.com
Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version
Nothing to do
[root@izbp1gb52c9au4ljt3u7w8z test]#
发现 wget 已经存在,我蒙蔽了,这咋回事啊
# yum remove wget -y
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 0:1.14-18.el7_6.1 will be erased
--> Finished Dependency Resolution
.......省略.........
Remove 1 Package
Installed size: 2.0 M
Removed:
wget.x86_64 0:1.14-18.el7_6.1
Complete!
[root@izbp1gb52c9au4ljt3u7w8z test]#
没办法,重装
yum -y install wget
再次下载
[root@izbp1gb52c9au4ljt3u7w8z test]# wget http://nginx.org/download/nginx-1.13.7.tar.gz
--2021-01-21 12:02:14-- http://nginx.org/download/nginx-1.13.7.tar.gz
Resolving nginx.org (nginx.org)... 3.125.197.172, 52.58.199.22, 2a05:d014:edb:5704::6, ...
Connecting to nginx.org (nginx.org)|3.125.197.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 990836 (968K) [application/octet-stream]
Saving to: ‘nginx-1.13.7.tar.gz’
100%[================================================================================================>] 990,836 32.4KB/s in 50s
2021-01-21 12:03:04 (19.4 KB/s) - ‘nginx-1.13.7.tar.gz’ saved [990836/990836]
ok~