FirewallD is not running
not is running Firewalld
2023-09-14 08:57:47 时间
在linux开放6379端口时,提示 FirewallD is not running,发现防火墙没有开启。
问题发现
[root@VM_0_9_centos redis-4.0.8]# firewall-cmd --zone=public --add-port=6379/tcp --permanent FirewallD is not running
查看防火墙状态
[root@VM_0_9_centos redis-4.0.8]# systemctl status firewalld ● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled) Active: inactive (dead) Docs: man:firewalld(1)
发现当前是dead状态,即防火墙未开启。
开启防火墙
[root@VM_0_9_centos redis-4.0.8]# systemctl start firewalld
没有任何提示,表示开启成功。
检查防火墙状态
[root@VM_0_9_centos redis-4.0.8]# systemctl status firewalld ● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled) Active: active (running) since Tue 2020-10-27 16:28:08 CST; 11s ago Docs: man:firewalld(1) Main PID: 32232 (firewalld) Tasks: 2 Memory: 32.0M CGroup: /system.slice/firewalld.service └─32232 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid Oct 27 16:28:08 VM_0_9_centos systemd[1]: Starting firewalld - dynamic firewall daemon... Oct 27 16:28:08 VM_0_9_centos systemd[1]: Started firewalld - dynamic firewall daemon.
防火墙开启成功。
关闭防火墙
[root@VM_0_9_centos redis-4.0.8]# systemctl stop firewalld
再次开放6379端口
[root@VM_0_9_centos redis-4.0.8]# firewall-cmd --zone=public --add-port=6379/tcp --permanent success
重启防火墙使配置即使生效
[root@VM_0_9_centos redis-4.0.8]# systemctl restart firewalld
查看系统所开放的端口
[root@VM_0_9_centos redis-4.0.8]# firewall-cmd --zone=public --list-ports 6379/tcp
结束!
相关文章
- Running Firefox as root in a regular user's session is not supported 问题解决
- [MySQL]解决mysql数据库连接报错:is not allowed to connect to this mysql server
- ORA-00317: file type string in header is not log file ORACLE 报错 故障修复 远程处理
- ORA-22153: source variable-length array is not initialized ORACLE 报错 故障修复 远程处理
- ORA-22163: left hand and right hand side collections are not of same type ORACLE 报错 故障修复 远程处理
- ORA-22630: attribute [string] is null or it is not well-formed ORACLE 报错 故障修复 远程处理
- ORA-23378: connection qualifier “string” is not valid for object group “string”.”string” ORACLE 报错 故障修复 远程处理
- ORA-23493: “string” is not a new site for extension request “string” ORACLE 报错 故障修复 远程处理
- ORA-26056: Requested direct path operation on a view is not supported. ORACLE 报错 故障修复 远程处理
- ORA-26807: Database link is not NULL for Apply with the name “string” . ORACLE 报错 故障修复 远程处理
- ORA-27366: job “string.string” is not running ORACLE 报错 故障修复 远程处理
- ORA-31632: master table “string.string” not found, invalid, or inaccessible ORACLE 报错 故障修复 远程处理
- ORA-39015: job is not running ORACLE 报错 故障修复 远程处理
- ORA-54037: table must have at least 1 column that is not virtual ORACLE 报错 故障修复 远程处理
- ORA-54521: inner ring is not inside or is touching outer ring more than once ORACLE 报错 故障修复 远程处理
- MySQL Error number: 4094; Symbol: ER_OPERATION_NOT_ALLOWED_WHILE_PRIMARY_CHANGE_IS_RUNNING; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-64013: specified path is not a directory ORACLE 报错 故障修复 远程处理
- ORA-64477: Multiple token tables are not supported. ORACLE 报错 故障修复 远程处理
- ORA-01193: file string is not the same file seen at start of recovery ORACLE 报错 故障修复 远程处理
- ORA-02289: sequence does not exist ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-011039; Symbol: ER_MICROSECOND_TIMER_IS_NOT_AVAILABLE; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-12454: label string does not exist for policy string ORACLE 报错 故障修复 远程处理
- ORA-13348: polygon boundary is not closed ORACLE 报错 故障修复 远程处理
- ORA-13424: the GeoRaster object is not spatially referenced ORACLE 报错 故障修复 远程处理
- ORA-14057: partition “string”: sum of PCTUSED and PCTFREE may not exceed 100 ORACLE 报错 故障修复 远程处理
- ORA-16758: the specified apply instance is not running ORACLE 报错 故障修复 远程处理
- centos出现“FirewallD is not running”详解程序员