我收到这个错误:
[!] bind: Permission denied (13)
[!] Error binding service [https] to :::443
这些是我的 stunnel.conf 设置:
[https]
accept = 120.113.121.99:443
accept = :::443
key = /etc/stunnel/localhost.key
cert = /etc/stunnel/localhost.crt
exec = /usr/bin/fossil
execargs = /usr/bin/fossil http /home/kane/repository/2017wcm_g4.fossil -- https --nojail
为什么会出现这个错误?我该如何补救?
最佳答案
我想到了两件事:
- 你确定没有其他程序在监听 443 端口吗? (
netstat --listen
) - 此外,我知道 Linux 需要 root 权限才能监听低于 1024 的端口。stunnel 是否具有这些权限?
关于ssl - 绑定(bind) : Permission denied (13) with stunnel for set https,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43525341/