RHEL9.3 firewalldやselinuxを停止する方法
環境
Red Hat Enterprise Linux release 9.3
操作方法
1.firewalld停止
# systemctl stop firewalld
# systemctl disable firewalld
Removed “/etc/systemd/system/multi-user.target.wants/firewalld.service".
Removed “/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service".
ステータスを確認します
# systemctl status firewalld
○ firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; preset: enabled) Active: inactive (dead) Docs: man:firewalld(1) 3月 05 09:44:10 EPGS00W0 systemd[1]: Starting firewalld - dynamic firewall daemon... 3月 05 09:44:11 EPGS00W0 systemd[1]: Started firewalld - dynamic firewall daemon. 3月 05 10:26:25 EPGS00W0 systemd[1]: Stopping firewalld - dynamic firewall daemon... 3月 05 10:26:25 EPGS00W0 systemd[1]: firewalld.service: Deactivated successfully. 3月 05 10:26:25 EPGS00W0 systemd[1]: Stopped firewalld - dynamic firewall daemon.
2.selinux停止
# grubby --update-kernel ALL --args selinux=0
再起動
# reboot
selinuxを確認
# getenforce
Disabled