1

我收到此错误:

[!] 绑定:权限被拒绝 (13)
[!] 将服务 [https] 绑定到 :::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

为什么会出现这个错误?我将如何最好地补救它?

4

1 回答 1

5

想到两件事:

  1. 你确定没有其他程序在监听 443 端口吗?( netstat --listen)
  2. 另外,我知道 Linux 需要 root 权限才能监听 1024 以下的端口。stunnel 有这些权限吗?
于 2017-04-21T07:21:26.520 回答