球童“听tcp:443:绑定:权限被拒绝”


13

升级到v0.9.3后,Caddy服务器无法启动并显示此错误:

listen tcp :443: bind: permission denied

我正在以systemd用户身份运行caddy caddy。我检查了二进制文件实际上是否归所拥有caddy

Answers:


9

如果您运行的是systemd v229或更高版本,则可以执行此操作而无需本质上提供二进制功能:

AmbientCapabilities=CAP_NET_BIND_SERVICE

球童systemd例如配置也提到了使用CapabilityBoundingSet=CAP_NET_BIND_SERVICE
基思

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.