How to solve the problem that port 80 is occupied under Linux
This article mainly explains "how to solve the problem that port 80 is occupied under Linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to solve the problem that port 80 is occupied under Linux".
First, find port 80 services
So if we want to install 80, we need to close the occupied port 80 and switch to the / etc/init.d service startup script to check. As shown in the picture, httpd (if you are not sure which one needs to be searched)
Second, view and monitor port 80
First of all, you need to confirm whether port 80 is occupied, you can enter it (take centos as an example in this example)
Netstat-nat | grep ": 80"
Listen is shown below to indicate that it is running
Third, close the service of port 80
After finding the port that occupies 80 services, as shown in the figure. Stop the service by executing the command
Check the port usage again, there is no 80 in use.
IV. Continue to install the service
After stopping 80 from being temporarily used, just continue to install the software you just had.
Once installed, check port 80 again
5. Check the number of processes on port 80
You can check the current usage of port 80 by adding the wc-l command.
At this point, I believe that everyone has a deeper understanding of "how to solve the problem that port 80 is occupied under Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!