Open ports on CentOS 7

If you want to open ports on CentOS 7 (firwalld is enabled by default), run the following command. This is a note for myself.

sudo firewall-cmd --zone=public --permanent --add-port=5000/tcp
sudo firewall-cmd --reload

Author: admin

A software engineer in greater Seattle area

Leave a Reply

Your email address will not be published. Required fields are marked *