Linux port Query

Source: Internet
Author: User

When XAMPP was used yesterday, an error was reported during startup, saying that port 443 was occupied. I looked at the application for half a day and thought it was strange that the program would use port 443? Using the Process Manager to kill, and the result is ineffective. I wanted to start over and think about it again, so I didn't solve the fundamental problem. So I googled and found a solution.
Start, Run, cmd
Run
Netstat-Ano
Description
A: display all connected and listening ports.
N: the IP address and port are displayed as IP addresses.
O: displays the ID of the process to be disconnected.
Use this method to find the process ID that occupies the port
Press Ctrl + Shift + ESC to open the windows Task Manager and switch to the process (processes). If there is no PID, click the column of the process ID to view the following select comumns... Select the PID (process identifier). After confirmation, sort by PID and find the correspondingNetstatThe application corresponding to the PID found by the command.

I found out that it was actually QQ. After killing it, the problem was solved. I don't know why port 443 is used for this ghost thing.
We have also found that Skype uses port 80 before. If you don't need Apache or other software, it would be really troublesome. The solution is Skype tools/OPTIONS... /Connection
Remove use port 80 and 443 as alternatives for incoming connections

Check,LinuxSystem,NetstatThe usage is basically the same. You only need to replace o with P. In addition, you must use the root account for query. Windows should also have the Administrator permission, but only the account-based administrator permission.

-P, -- Programs Display PID/program name for sockets [root @ call root] # netstat-ANP

Check whether kill or killall depends on you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.