我遇到了一个问题,试图在Google平台上安装一个https,使用golang +让我们加密
在所有这些配置之后,我总是收到下一个错误消息:
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'.发布于 2019-02-14 14:49:11
好的,我只是想了解更多关于CAP_NET_BIND_SERVICE的信息,我在另一篇文章中找到了Stensland的答案:
https://unix.stackexchange.com/questions/455221/setcap-not-found-in-debian-9/455234#455234
现在看起来是固定的..。谢谢
但是现在我有了一个"open /etc/letsencrypt/live/mydomain.com/cert.pem: progress“错误:\ (正在寻找其他正在进行的解决方案.)
发布于 2019-02-14 12:32:08
如果要绑定到特权端口 (端口小于1024)。您要么需要成为root,要么具有CAP_NET_BIND_SERVICE能力。
发布于 2021-07-24 11:12:56
使用iptable执行端口重定向。在https://stackoverflow.com/a/1762807/1100242上用flappysocks检查这个答案
https://stackoverflow.com/questions/54690289
复制相似问题