正在检查您的域名 . . .
警告:使用主机名 foro.caletawp.com 无法访问计算机的 443 端口。
警告:与 http://foro.caletawp.com(端口 80)的连接也失败。
这表明 foro.caletawp.com 解析到的 IP 地址未连接到您正在安装 discourse 的此计算机。
首先要做的是确认 foro.caletawp.com 解析到的 IP 地址是此服务器的 IP 地址。
您通常在购买域名的同一地点进行此操作。
如果您确定 IP 地址解析正确,则可能是防火墙问题。
搜索“打开端口 YOUR CLOUD SERVICE”可能会有帮助。
此工具仅用于最标准的安装。如果您无法解决上述问题,则需要自行编辑 containers/app.yml,然后键入
./launcher rebuild app
这是一个 DNS 问题。您需要创建一个记录类型为“A”的记录,其中包含您的域名和 IP。如果您在使用 Cloudflare,请将其设置为“仅 DNS”而不是“代理”。仅在安装过程中执行此操作。
另外,检查端口 80 和 443 是否已打开。在 AWS Lightsail 上,端口 443 默认未打开。
1 个赞
您需要在您的 vps 中打开端口 80 和 443。
它以前就可以工作。您更改了什么?我看到了 2 个不同的域名。
1 个赞
左边现在是橙色的云。
pfaffman@badboy:~$ doggo foro.caletawp.com
名称 类型 类别 TTL 地址 名称服务器
foro.caletawp.com. A IN 300秒 172.67.211.93 127.0.0.53:53
foro.caletawp.com. A IN 300秒 104.21.93.150 127.0.0.53:53
你发送了另一个域名的截图,所以我无法复制粘贴进行检查。
1 个赞
具体怎么操作?我刚设置了一个全新的 Digital Ocean 实例,克隆了仓库,运行了设置,然后遇到了 443 错误。
我看到这个:
root@lume-community:/var/discourse# sudo ufw allow 80
root@lume-community:/var/discourse# sudo ufw allow 443
root@lume-community:/var/discourse# sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
root@lume-community:/var/discourse# sudo ufw status
Status: active
To Action From
-- ------ ----
443 ALLOW Anywhere
80 ALLOW Anywhere
443 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
然后是:
root@lume-community:/var/discourse# ./discourse-setup
The configuration file containers/app.yml already exists!
. . . reconfiguring . . .
Saving old file as app.yml.2025-03-17-074439.bak
Stopping existing container in 5 seconds or Control-C to cancel.
x86_64 arch detected.
app was not started !
./discourse-doctor may help diagnose the problem.
Found 2GB of memory and 1 physical CPU cores
setting db_shared_buffers = 256MB
setting UNICORN_WORKERS = 4
containers/app.yml memory parameters updated.
Hostname for your Discourse? [discourse.example.com]: lume.community
Checking your domain name . . .
WARNING: Port 443 of computer does not appear to be accessible using hostname: lume.community.
WARNING: Connection to http://lume.community (port 80) also fails.
......
能否更新设置脚本来修复这个问题(就像它会自动修复内存不足的机器上缺少交换文件的问题一样)?
啊!我必须在 ufw 变更后重启,然后它就正常了!
如果 discourse-setup 脚本可以检测操作系统,建议或运行 ufw 命令,然后在再次尝试运行安装脚本之前建议重启,可能会更好。

