Home >Operation and Maintenance >CentOS >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!