AlmaLinux 8.4でFirewallD is not runningの解決方法

2021年11月3日

OSバージョンの確認

# cat /etc/redhat-release
AlmaLinux release 8.4 (Electric Cheetah)

エラーメッセージ
# sudo firewall-cmd –add-port=5000/tcp –zone=public –permanent
FirewallD is not running

ファイヤーウォールの状態を確認

#  systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor >
   Active: inactive (dead)
     Docs: man:firewalld(1)

対策

# systemctl start firewalld.service
# systemctl enable firewalld
Created symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service 
→ /usr/lib/systemd/system/firewalld.service.
Created symlink /etc/systemd/system/multi-user.target.wants/firewalld.service 
→ /usr/lib/systemd/system/firewalld.service.

 

AlmaLinux

Posted by arkgame