the reason
When I install Apache Liunx service encounter
There exists a process, this process still waiting
This situation may lead to the reason I did not start running direct networking
yum install -y httpd
The process has been led to take up resources, pid is locked
Solution
General articles
First, review the process with ps, as follows:
ps -ef
see details
At this point if I wanted to kill the process of yum would enter in a terminal:
kill -s 9 2457
-S 9 which developed the process signals are passed to 9, that is forced to terminate the process as soon as possible.
2457 PID is found in the yum above ps
After killing other processes yum, yum will be able to run normally
Advanced articles
Ps query results to grep to find a process that includes a specific string through the pipeline. Pipe character "|" designed to separate the two commands, command pipe character to the left of the output will be used as input pipe symbol to the right of command.
ps -ef | grep yum
So you can see the information more concise yum process
Use pgrep:
pgrep of p indicates the command grep is designed to process queries.
pgrep yum