centos appear "FirewallD is not running" Solutions

Ali recently installed on the cloud server centos rabbitmq, default is not to enable remote access, you need to set up some firewall, port 5672 and 15672 when prompted FirewallD is not running open, after investigation found no open firewall caused by the consider installing a firewall or in the open on it, the following steps are for reference only.

1. Run the command open port 5672 and 15672

firewall-cmd --zone=public --add-port=5672/tcp --permanent;firewall-cmd --reload;
firewall-cmd --zone=public --add-port=15672/tcp --permanent;firewall-cmd --reload;

Tip firewalld IS Not running , as shown in FIG.
Here Insert Picture Description
2. Check firewalld state, found that the current state is dead, that the firewall is not turned on.

systemctl status firewalld

Here Insert Picture Description
3. By opening the firewall, without any prompting open successfully.

systemctl start firewalld

Here Insert Picture Description
4. Check again firewalld status display running already opened.

systemctl status firewalld

Here Insert Picture Description
5. Perform again open port 5672 and 15672 command prompt success, indicating setting finish, so that you can continue to the back of the set.

firewall-cmd --zone=public --add-port=5672/tcp --permanent;firewall-cmd --reload;
firewall-cmd --zone=public --add-port=15672/tcp --permanent;firewall-cmd --reload;

Here Insert Picture Description
6. If you want to turn off the firewall settings

systemctl stop firewalld

This feature may be turned off by this instruction.

Guess you like

Origin blog.csdn.net/weixin_42236165/article/details/92391976
Recommended