背景:
由于服務(wù)器安裝了jexus+mono 用來支持.net,需要用到80和ssl 443端口,因此在apache啟動(dòng)過程中,雖然更改對外http的端口為8080,但443端口已經(jīng)被mono占用,因此apache啟動(dòng)失敗。
報(bào)錯(cuò)如下:
Jan 10 11:40:31 feijian httpd[5663]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:443
Jan 10 11:40:31 feijian httpd[5663]: no listening sockets available, shutting down
解決方案如下:
[root@feijian conf.d]# pwd
/etc/httpd/conf.d
[root@feijian conf.d]# vim ssl.conf
找到一行:
Listen 443 https //將這一行的443端口修改為其他端口即可,如442
然后重啟apache
[root@feijian conf.d]# systemctl start httpd.service