AWS RedHat9 EC2インスタンスにはファイアウォール(firewalld)がインストールされないことを確認する

環境
AWS EC2
Red Hat Enterprise Linux release 9.2 (Plow)

操作方法
1.firewalld の状態を確認する

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$ systemctl status firewalld
Unit firewalld.service could not be found.
$ systemctl status firewalld Unit firewalld.service could not be found.
$ systemctl status firewalld
Unit firewalld.service could not be found.

2.インストール済みのサービスユニットファイルを表示させ、grep コマンドで firewalld がないか確認しますが、サービスユニットファイルがありません。
$ systemctl list-unit-files | grep firewalld

3./usr/lib/systemd/system/ ディレクトリにファイルがないか確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# cd /usr/lib/systemd/system
# ls
# cd /usr/lib/systemd/system # ls
# cd /usr/lib/systemd/system
# ls

 

AWS

Posted by arkgame