check if a port is open centos code example
Example 1: show port list in centos
# netstat -tulnp
Example 2: centos 7 port open
firewall-cmd --zone=public --add-port=55555/tcp --permanent
firewall-cmd --reload
# netstat -tulnp
firewall-cmd --zone=public --add-port=55555/tcp --permanent
firewall-cmd --reload