firewall-cmd centos 7 code example
Example 1: install firewall-cmd centos 7
sudo yum install firewalld
sudo systemctl enable firewalld
sudo reboot
Example 2: is firewall running centos 7
systemctl status firewalld
sudo yum install firewalld
sudo systemctl enable firewalld
sudo reboot
systemctl status firewalld