查看防火墙:
systemctl status firewald.service
关闭防火墙:
systemctl stop firewald.service
开启防火墙:
systemctl start firewald.service
永久关闭防火墙:
systemctl disable firewald.service
永久开启防火墙:
systemctl enable firewald.service
查看防火墙状态:
[opc@instance-20211215-1151 ~]$ systemctl list-unit-files |grep fire
firewalld.service disabled
[opc@instance-20211215-1151 ~]$ systemctl list-unit-files