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 is occupied under Linux

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

Share

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

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!

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

Development

Wechat

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

12
Report