逐梦论坛's Archiver

shillan 发表于 2016-2-12 02:11

-bash:wget command not found的解决方法 wget安装方法

[b]现象[/b]:
最小化安装的centos6.X并未安装wget包,故没法执行weget命令,执行时会报错:-bash:wget command not found

[b]解决:[/b]
1、如果可上Internet,则可进行yum安装,执行以下命令:
yum -y install wget

2、如果无法上Internet,则下载wget的rpm包通过rpm安装,下载地址:
CentOS 6.6:
32位:[url]http://mirrors.aliyun.com/centos/6.6/os/i386/Packages/wget-1.12-5.el6.i686.rpm[/url]
64位:[url]http://mirrors.aliyun.com/centos/6.6/os/x86_64/Packages/wget-1.12-5.el6.x86_64.rpm[/url]

CentOS 6.7:
32位:[url]http://mirrors.aliyun.com/centos/6.7/os/i386/Packages/wget-1.12-5.el6_6.1.i686.rpm[/url]
64位:[url]http://mirrors.aliyun.com/centos/6.7/os/x86_64/Packages/wget-1.12-5.el6_6.1.x86_64.rpm[/url]

下载完成后,[color=Red]利用FlashFXP等FTP软件的SFTP连接进行文件的上传,[/color] 之后直接执行以下命令安装即可(以CentOS 6.7 64位为例):
rpm [color=Red]-[/color]ivh wget-1.12-5.el6_6.1.x86_64.rpm
[attach]5361[/attach]

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.