当前位置:首页 - Linux

centos 无法访问80端口 添加放行开放80端口

作者:高景洋 日期:2021-11-22 23:19:59 浏览次数:1228
firewall-cmd —zone=public —add-port=80/tcp —permanent

firewall-cmd —reload


80可以改为任意你想放行的端口

本文永久性链接:
<a href="http://r4.com.cn/art209.aspx">centos 无法访问80端口 添加放行开放80端口</a>
当前header:Host: r4.com.cn X-Host1: r4.com.cn X-Host2: r4.com.cn X-Host3: 127.0.0.1:8080 X-Forwarded-For: 18.227.46.87 X-Real-Ip: 18.227.46.87 X-Domain: r4.com.cn X-Request: GET /art209.aspx HTTP/1.1 X-Request-Uri: /art209.aspx Connection: close Accept: */* User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) Cookie: PHPSESSID=gfqp2jfeirf655dgu7ehv69kc7 Accept-Encoding: gzip, br, zstd, deflate