ubuntu checks the programs occupying a certain port

伊谢尔伦
Release: 2016-11-29 11:11:45
Original
1687 people have browsed it

To view port usage, use the netstat command.
View the connected service ports (ESTABLISHED)

netstat -a

View all service ports (LISTEN, ESTABLISHED)

netstat -ap

To view the 8080 port, you can combine it with the grep command:

netstat -ap | grep 8080

If you want to view the 8888 port, enter in the terminal:

lsof -i:8888

To stop the program using this port, use kill + the corresponding pid


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template