开放某个端口
firewall-cmd --add-port=6379/tcp --permanent
重启防火墙
firewall-cmd --reload
查看已开放的端口号
firewall-cmd --list-all
暂时关闭防火墙
systemctl stop firewall
开启防火墙
systemctl start firewall
永久关闭防火墙
systemctl disable firewall