一.关于防火墙
1.开放某个端口
firewall-cmd --add-port=端口号/tcp --permanent
2.开放完成之后,防火墙重载
firewall-cmd --reload
3.查看端口已开放列表
firewall-cmd --list-ports
4.开启防火墙
systemctl start firewalld
5.暂时关闭防火墙
systemctl stop firewalld
6.查看防火墙状态
systemctl status firewalld
7.永久关闭防火墙
systemctl disable firewalld
systemctl stop firewalld
8.开启防火墙服务
systemctl enable firewalld
systemctl start firewalld
9.查看redis集群哪些端口已开启
ps -ef|grep redis