check if a port is open centos 7 code example
Example 1: centos 7 port open
firewall-cmd --zone=public --add-port=55555/tcp --permanent
firewall-cmd --reload
Example 2: netstat centos ports
sudo ss -lntu
sudo netstat -ltup
sudo netstat -tulnp
firewall-cmd --zone=public --add-port=55555/tcp --permanent
firewall-cmd --reload
sudo ss -lntu
sudo netstat -ltup
sudo netstat -tulnp