【发布时间】:2019-07-08 11:21:22
【问题描述】:
我在尝试使用 golang + let's encrypt 在 Google Cloud Platform 上设置 https 时遇到问题
我已经有一个以实例 IP 为目标的域
我还得到了一个让我们加密证书和链保存在 /etc/letsencrypt/live/mydomain.com/
我已经将 myapp 设置为使用证书并配置为通过 systemctl 使用 myapp.service 作为服务运行
在所有这些配置之后,我总是会收到下一条错误消息:
Feb 14 11:29:47 https https[1982]: 2019/02/14 11:29:47 listen tcp :443: bind: permission denied
Feb 14 11:29:47 https systemd[1]: https.service: Main process exited, code=exited, status=1/FAILURE
Feb 14 11:29:47 https systemd[1]: https.service: Unit entered failed state.
Feb 14 11:29:47 https systemd[1]: https.service: Failed with result 'exit-code'.
【问题讨论】:
-
其他进程已经在 443 监听。
-
@freakish 这不是真的,如果另一个进程正在侦听同一端口。你会得到
bind: address already in use错误。 -
啊,很公平。你是对的,默认情况下 Linux 服务器不允许访问低端口。
标签: go https google-cloud-platform lets-encrypt