What should I do if the error "FirewallD is not running" is reported, and how to solve it?

Table of contents

1. Error details

Second, the solution - open the firewall steps

Step 1: First check the status of the firewall through the command.

 Step 2: Turn on the firewall.

Step 3: Check the firewall status again


1. Error details

Create a redis container in docker. When performing window access to the redis container port for binding settings, execute firewall-cmd --zone=public --add-port=6379/tcp --permanent to set the firewall port, you need to open the firewall. Prompt error FirewallD is not running, the firewall is not turned on.

Second, the solution - open the firewall steps

Just turn on the firewall and execute the command.

Step 1: First check the status of the firewall through the command.

Command: systemctl status firewalld        — "View firewalld status

It is found that the current state is dead , that is, the firewall is not enabled.

 Step 2: Turn on the firewall.

Instruction: systemctl start firewalld

There is no prompt when executing the command, that is, the startup is successful.

Step 3: Check the firewall status again

Command: systemctl status firewalld        — "View firewalld status

It shows that running is turned on

 The firewall is turned on, just continue to execute the command.

Execute firewall-cmd --zone=public --add-port=6379/tcp --permanent , prompt success , indicating that the setting is successful, so you can continue the following settings.


If you want to turn off the firewall settings, you may turn off this function through the command systemctl stop firewalld .

Guess you like

Origin blog.csdn.net/zsy3757486/article/details/129288539