绑定:权限被拒绝(13)安全通道的设置HTTPS
问题描述:
我收到此错误:绑定:权限被拒绝(13)安全通道的设置HTTPS
[!] 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是否拥有这些权限?
+1
1024以下端口精确... –
+0
@StefanHegny:谢谢,我更新了这篇文章。 – Martijn
请提供更多信息。你想做什么?你用什么来做你想做的事情?你已经尝试过什么来解决这个错误?完全不清楚你究竟在问什么。 –
试图修复语法,使意图更清晰。 –