CentOS 7.xファイアウォールの問題
785 ワード
システムctlによるサービスとプログラムの管理ファイアウォールステータスの表示 ファイアウォール を開く.ファイアウォール を再起動ファイアウォール を閉じる.ファイアウォール起動禁止 firewall-cmdによる管理ファイアウォールのステータスを確認する オープンポート を表示オープンポート を再読み込みします.
systemctl status firewalld
systemctl start firewalld
systemctl restart firewalld
systemctl stop firewalld
systemctl disable firewalld
firewall-cmd --state
firewall-cmd --list-ports
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
-ポートを閉じるfirewall-cmd --zone=public --remove-port=80/tcp --permanent
zone #
add-port=80/tcp # , : /
permanent # ,