Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that port 80 of Linux system is occupied

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how to solve the problem that port 80 of the Linux system is occupied. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

Some Linux installs the webmail service under centos due to the problem that port 80 is occupied, which makes it impossible to continue the installation. Here is a detailed description of how to view, find and shut down the listening service of port 80 in Linux to better solve the problem of port 80 being occupied.

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.

The above is the editor for you to share how to solve the problem that port 80 of the Linux system is occupied, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report