赞
踩
1. 查看是否安装了firewalld
sudo systemctl status firewalld; sudo systemctl is-active firewalld
2. 安装firewalld
sudo apt-get install firewalld
3. 查看firewalld状态
sudo systemctl status firewalld
4. 开放6379port
sudo firewall-cmd --add-port=6379/tcp --permanent
重启防火墙 sudo firewall-cmd --reload
5. 查询6379 port
sudo firewall-cmd --query-port=6379/tcp
6. 设置开启启动firewalld
sudo systemctl enable firewalld
7. reboot,查询全部已开放的端口
sudo firewall-cmd --list-all
开启防火墙服务 service firewalld start
重启防火墙服务 service firewalld restart
关闭防火墙服务 service firewalld stop
移除端口 firewall-cmd --permanent --remove-port=6379/tcp
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。