宝塔面板无法访问本地站点排查
常见原因及修复
问题类型 | 检查命令/操作 | 解决方案 |
---|---|---|
端口未放行 | firewall-cmd --list-all 查看防火墙规则 |
放行端口:firewall-cmd --add-port=80/tcp |
服务未启动 | systemctl status nginx 或 systemctl status apache |
启动服务:systemctl start nginx |
hosts配置错误 | cat /etc/hosts 检查是否绑定127.0.0.1到域名 |
注释本地测试域名行:#127.0.0.1 site.local |
SELinux拦截 | `tail /var/log/audit/audit.log | grep nginx` |
更新时间:2025-06-21 16:33:11
上一篇:Z-Blog主题模板安装方式
下一篇:多语言网站名称管理方案