在ssl模式下启动httpd centos并不起作用

时间:2016-05-27 21:03:57

标签: apache ssl https centos

在我的服务器中,我以root用户身份登录。我配置了centos(httpd)的web服务器来使用https。如果我按原样启动服务器,它可以正常工作,但如果我更改SSL端口则失败。如果我运行此命令

systemctl status httpd.service

它给我以下日志:

● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since ven 2016-05-27 22:50:25 CEST; 10s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 1776 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 1774 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 1774 (code=exited, status=1/FAILURE)

mag 27 22:50:25 vps1 httpd[1774]: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:8891
mag 27 22:50:25 vps1 httpd[1774]: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:8891
mag 27 22:50:25 vps1 httpd[1774]: no listening sockets available, shutting down
mag 27 22:50:25 vps1 httpd[1774]: AH00015: Unable to open logs
mag 27 22:50:25 vps1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
mag 27 22:50:25 vps1 kill[1776]: kill: cannot find process ""
mag 27 22:50:25 vps1 systemd[1]: httpd.service: control process exited, code=exited status=1
mag 27 22:50:25 vps1 systemd[1]: Failed to start The Apache HTTP Server.
mag 27 22:50:25 vps1 systemd[1]: Unit httpd.service entered failed state.
mag 27 22:50:25 vps1 systemd[1]: httpd.service failed.

我无法理解这个问题。有443件作品,8891件作品不起作用。我已经配置了防火墙,并尝试在其他帖子中提供此命令:

setenforce 0

我真的需要帮助。 感谢

0 个答案:

没有答案