Centos7.4最小安装使用wget下载报:-bash wget command not found
2017-12-29 19:49
295 查看
一般我们选择安装Centos的最小安装,然后我们在使用好多工具的时候就会报错!wget不会默认被安装。
解决方法:
1.【推荐使用】
[root@DB1 ~]# yum -y install wget
安装完毕即可。
2.
rpm 安装
rpm 下载源地址:http://mirrors.163.com/centos/6.2/os/x86_64/Packages/
下载wget的RPM包:http://mirrors.163.com/centos/6.2/os/x86_64/Packages/wget-1.12-1.4.el6.x86_64.rpm
rpm ivh wget-1.12-1.4.el6.x86_64.rpm 安装即可。
安装另一个SSH客户端:FileZilla。然后传到服务器上安装,这个比较费劲,所以推荐使用第一种方法进行安装!
不过如果yum包也没有安装的话,那就只能用第二种方法了!
当看到Complete!表示成功安装完成!
解决方法:
1.【推荐使用】
[root@DB1 ~]# yum -y install wget
安装完毕即可。
2.
rpm 安装
rpm 下载源地址:http://mirrors.163.com/centos/6.2/os/x86_64/Packages/
下载wget的RPM包:http://mirrors.163.com/centos/6.2/os/x86_64/Packages/wget-1.12-1.4.el6.x86_64.rpm
rpm ivh wget-1.12-1.4.el6.x86_64.rpm 安装即可。
安装另一个SSH客户端:FileZilla。然后传到服务器上安装,这个比较费劲,所以推荐使用第一种方法进行安装!
不过如果yum包也没有安装的话,那就只能用第二种方法了!
[root@localhost /]# yum -y install wget Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/4): base/7/x86_64/group_gz | 156 kB 00:00:00 (2/4): updates/7/x86_64/primary_db | 2.7 MB 00:00:01 (3/4): extras/7/x86_64/primary_db | 110 kB 00:00:01 (4/4): base/7/x86_64/primary_db | 5.7 MB 00:00:25 Determining fastest mirrors * base: mirrors.btte.net * extras: mirrors.cn99.com * updates: mirrors.cn99.com Resolving Dependencies --> Running transaction check ---> Package wget.x86_64 0:1.14-15.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================================================ Installing: wget x86_64 1.14-15.el7 base 547 k Transaction Summary ============================================================================================================================================================================================================ Install 1 Package Total download size: 547 k Installed size: 2.0 M Downloading packages: warning: /var/cache/yum/x86_64/7/base/packages/wget-1.14-15.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY ] 0.0 B/s | 144 kB --:--:-- ETA Public key for wget-1.14-15.el7.x86_64.rpm is not installed wget-1.14-15.el7.x86_64.rpm | 547 kB 00:00:00 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-3.1611.el7.centos.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : wget-1.14-15.el7.x86_64 1/1 Verifying : wget-1.14-15.el7.x86_64 1/1 Installed: wget.x86_64 0:1.14-15.el7 Complete! [root@localhost /]#
当看到Complete!表示成功安装完成!
相关文章推荐
- 使用pecl安装php扩展时出错-bash: pecl: command not found
- Linux 修改.bash_profile后 造成命令无法使用bash: command not found
- OS X10.11升级安装Cocoapods出现-bash: pod: command not found
- CentOS中无法使用setup命令 -bash:setup: command not found
- linux下使用shutdown命令关机,提示: -bash:shutdown:command not found
- 如何在Mac中使用Android SDK,使用adb工具避免出现-bash: adb: command not found
- Linux不能使用FTP 命令 -bash: ftp: command not found
- -bash: mkfir: command not found -bash: wget: command not found
- mac 安装 MySQL报错 -bash: mysql: command not found
- centos6.8下无法使用lsof命令"-bash: lsof: command not found"
- 系统最小化安装后,使用命令时提示“command not found”
- 【Linux】bash: wget: command not found
- centos6下无法使用lsof命令"-bash: lsof: command not found"
- Mac本提示-bash: wget: command not found
- Minimal 安装模式的centos -bash:***: command not found
- -bash:wget command not found
- 安装CocoaPods 出错-bash: $: command not found
- 两种方法解决Linux wget报错-bash: wget command not found
- centos6下无法使用lsof命令"-bash: lsof: command not found"
- Linux 修改.bash_profile后 造成命令无法使用bash: command not found