小编Rob*_*rto的帖子

GCP上的golang =>监听tcp:443:绑定:权限被拒绝

尝试使用golang在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'.
Run Code Online (Sandbox Code Playgroud)

https go google-cloud-platform lets-encrypt

2
推荐指数
2
解决办法
1779
查看次数

标签 统计

go ×1

google-cloud-platform ×1

https ×1

lets-encrypt ×1