Home >Operation and Maintenance >CentOS >How to check the port in centos7 system

How to check the port in centos7 system

王林
王林Original
2020-03-16 19:20:327549browse

How to check the port in centos7 system

View all open ports on the firewall

firewall-cmd --zone=public --list-ports

(Recommended tutorial: centos usage tutorial)

View the listening ports

netstat -lnpt

Check which process the port is occupied

netstat -lnpt |grep 5672

Related video tutorial sharing: linux video tutorial

The above is the detailed content of How to check the port in centos7 system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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