# ‘计算机的端口443似乎无法访问’

**URL:** <https://meta.discourse.org/t/port-443-of-computer-does-not-appear-to-be-accessible/323307>\
**Category:** Self-hosting\
**Created:** [2024 年8 月 24 日 22:10 UTC](https://meta.discourse.org/t/port-443-of-computer-does-not-appear-to-be-accessible/323307 "2024-08-24T22:10:38Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

作者： ![trusktr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trusktr/32/116841_2.png) [@trusktr](https://meta.discourse.org/u/trusktr)\
发布日期： [2025 年3 月 17 日 07:42 UTC](https://meta.discourse.org/t/port-443-of-computer-does-not-appear-to-be-accessible/323307/6 "2025-03-17T07:42:34Z")

</div>

> [@David\_Ghost](#):
>
> 您需要在您的 vps 上打开 80 和 443 端口。

具体怎么操作？我刚设置了一个全新的 Digital Ocean 实例，克隆了仓库，运行了设置，然后遇到了 443 错误。

我看到这个：

```plaintext
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)

```

然后是：

```plaintext
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.

......

```

能否更新设置脚本来修复这个问题（就像它会自动修复内存不足的机器上缺少交换文件的问题一样）？

---

_[View the full topic](https://meta.discourse.org/t/port-443-of-computer-does-not-appear-to-be-accessible/323307)._
