端口号

2018-08-29  本文已影响0人  前端开发小匠

服务器网络正常,但是Telnet 80 端口不通;

关于防火墙

# 检查防火墙状态
firewall-cmd --state
firewall-cmd --list-all
systemctl status firewalld

#启动防火墙
systemctl start firewalld.service

# 开启 80 443 端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
# 重启防火墙
firewall-cmd --reload


# 关闭防火墙
systemctl disable firewalld
systemctl stop firewalld
systemctl status firewalld

# 启用防火墙
systemctl enable firewalld
systemctl start firewalld
systemctl status firewalld
上一篇下一篇

猜你喜欢

热点阅读