首页 > 代码库 > -bash: wget: command not found的两种解决方法
-bash: wget: command not found的两种解决方法
今天给服务器安装新WDCP环境时,wget 时提示 -bash:wget command not found,很明显没有安装wget软件包。一般linux最小化安装时,wget不会默认被安装,这里是CentOS 64位系统
解决方法:
1、rpm 安装
下载wget的RPM包:
32位:http://mirrors.163.com/centos/6.3/os/i386/Packages/wget-1.12-1.4.el6.i686.rpm
6432位:http://mirrors.163.com/centos/6.3/os/x86_64/Packages/wget-1.12-1.4.el6.x86_64.rpm
rpm ivh wget-1.12-1.4.el6.i686.rpm 安装即可;64位当然选择wget-1.12-1.4.el6.x86_64.rpm了
2、yum安装
yum -y install wget
即可安装;
如果客户端用的是SecureCRT,linux下没装rzsz 包时,rz无法上传文件怎么办?我想到的是安装另一个SSH客户端:SSH Secure Shell。然后传到服务器上安装,这个比较费劲,所以推荐用第二种方法,不过如果yum包也没有安装的话,那就只能用这种方法了
-bash: wget: command not found的两种解决方法
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。