check port use centos code example Example: centos open port # firewall-cmd --zone=public --add-port=55555/tcp --permanent success