Two solutions for -bash: wget: command not found
When installing a new LNMP environment for the server today, wget prompts -bash: wget command not found, obviously the wget package is not installed. Generally, when linux is minimally installed, wget will not be installed by default.
There are two ways to install:
1. rpm install
rpm Download source address: http://mirrors.163.com/centos/6.2/os/x86_64/Packages/
Download wget RPM package: 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 to install.
If the client uses SecureCRT and the rzsz package is not installed under linux, what should I do if rz cannot upload files? What came to my mind was to install another SSH client: SSH Secure Shell. Then upload it to the server for installation, which is more laborious, so the second method is recommended, but if the yum package is not installed, this method can only be used.
2. yum installation
yum -y install wget
Obviously the second method is simpler and faster.
Reference:
http://blog.csdn.net/keda8997110/article/details/8735735
Two solutions for -bash: wget: command not found
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326322528&siteId=291194637
Recommended
Ranking