我已经安装了 apache2,然后按照以下步骤配置它以使用 SSL这和这教程,问题出现在我尝试重新启动服务时,抛出以下错误:
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 no listening sockets available, shutting down Unable to open logs
仅显示 Firefox 正在监听和其他任何内容的输出netstat -anp | grep 443
,我该如何解决这个问题并让服务运行??
输出ps -Af|grep <firefox PID>
为:
root 1949 1 11 18:42 tty1 00:20:55 /opt/firefox/firefox-bin root 2025 1949 4 18:43 tty1 00:08:39 /opt/firefox/plugin-container /root/.mozilla/plugins/libflashplayer.so -greomni /opt/firefox/omni.ja 1949 true plugin
关闭 Firefox 后,再次检查端口 443,输出为:
tcp 0 0 10.32.208.179:38923 74.125.139.155:443 TIME_WAIT -
tcp 0 0 10.32.208.179:45706 74.125.139.113:443 TIME_WAIT -
tcp 0 0 10.32.208.179:40456 74.125.139.156:443 TIME_WAIT -
tcp 0 0 10.32.208.179:56823 69.171.227.62:443 FIN_WAIT2 -
unix 3 [ ] STREAM CONNECTED 12443 1721/dbus-daemon @/tmp/dbus-8ee35rmOOS
查看错误日志(在我执行此操作时没有出现),最后的错误是:
[Tue Oct 02 18:41:54 2012] [error] Init: Unable to read server certificate from file /etc/apache2/ssl/sever.crt [Tue Oct 02 18:41:54 2012] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag [Tue Oct 02 18:41:54 2012] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
答案1
来自关联你所指出的:
完成以下步骤。