Can't find the Linux command? (Command not found)
The problem is very simple, if you enter a command at the terminal and the system prompts you to say that the command did not find it, either because you did not install the appropriate package or because of a problem with the path setting. If it is because of the package problem, there is nothing else to say, install the corresponding package is good. In another case, the user's path needs to be set.
-bash:ls:command not found or-bash:ll:command not found
Cause: When setting environment variables, the edit profile is not correctly written, resulting in commands such as LS that are not recognized at the command line.
Solution:
Export Path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
Bash:php:command not found
Solve:
Export path= $PATH:/usr/local/php/bin
Then, Echo $PATH look, and see.
Usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/php/bin
At this time, you can directly in any directory of the system typing Php-i can be executed.
-bash:unzip:command not found
Two solutions to-bash:wget:command not found
Wget will not be installed by default when Linux is minimized in general.
There are two ways to install the following:
1, RPM Installation
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 installation.
2. Yum Installation
Yum-y Install wget
80 port prompt is already occupied
HTTPd not running, trying to start
(98) Address already in use:AH00072:make_sock:could not bind to address [::]:80
(98) Address already in use:AH00072:make_sock:could don't bind to address 0.0.0.0:80
No listening sockets available, shutting down
Ah00015:unable to open logs
Solve:
# netstat-lnp|grep:80
TCP 0 0::: +:::* LISTEN 2184/httpd
Kill the Service
# killall-9 HTTPD
Restart
#/ETC/INIT.D/HTTPD Start
-bash:php:command not found command not found