Docker安装centos7报Unit firewalld.service could not be found.异常
1.下载安装firewall-cmdyum install firewalld systemd -y2.查看服务器上是否安装了firewallsystemctl status firewalld3.开启防火墙systemctl start firewalld.service4.关闭防火墙systemctl stop firewalld.service5.设置开机启动systemctl enable
·
1.下载安装firewall-cmd
yum install firewalld systemd -y
2.查看服务器上是否安装了firewall
systemctl status firewalld
3.开启防火墙
systemctl start firewalld.service
4.关闭防火墙
systemctl stop firewalld.service
5.设置开机启动
systemctl enable firewalld.service
6.设置关闭开机启动
systemctl disable firewalld.service
7.查看端口列表
firewall-cmd --list-ports
8.开启端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
9.关闭端口
firewall-cmd --zone=public --remove-port=80/tcp --permanent
10.查看端口
firewall-cmd --zone=public --query-port=80/tcp
更多推荐
已为社区贡献15条内容
所有评论(0)