开放端口:
firewall-cmd --zone=public --add-port=9200/tcp --permanent
关闭端口:
firewall-cmd --permanent --remove-port=9200/tcp
查看已开放端口:
firewall-cmd --list-ports
防火墙重启:
firewall-cmd --reload
防火墙关闭:
systemctl stop firewalld.service
防火墙启动:
systemctl start firewalld.service
查看防火墙状态
systemctl status firewalld