Blogger Information
Blog 291
fans 0
comment 0
visits 349753
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
-bash: wget: 未找到命令
Original
3627 people have browsed it

镜像下载、域名解析、时间同步请点击 阿里云开源镜像站

在虚拟机中利用wget命令下载安装相关应用时,提示:-bash: wget: 未找到命令

file

问题原因:

1、服务器本身没有自带安装wget,但一般很少有这种情况出现。

2、服务器自带的wget版本过低,无法通过wget命令去安装其它应用。
.

解决:

  1. 查看服务器是否安装wget
  1. rpm -qa|grep 'wget'

如果有,则执行第2步;如果没有,则执行第3步。

  1. 卸载wget
  1. yum remove wget
  1. 下载wget的rpm安装包
  1. 创建wget目录

在/usr/local下创建wget目录,xftp工具将rpm文件上传至wget目录下

  1. 运行安装wget
  1. rpm -ivh wget-1.14-18.el7_6.1.x86_64.rpm

执行第1步,查看wget是否安装成功。

  1. 检验安装wget是否可用

file

成功

原文链接:https://blog.csdn.net/qq_31832209/article/details/124170611

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post