本帖最后由 445433045 于 2015-12-13 20:01 编辑
配置文件:
Listen 5000
Listen 35357
<VirtualHost *:5000>
WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP}
WSGIProcessGroup keystone-public
WSGIScriptAlias / /var/www/cgi-bin/keystone/main
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
LogLevel info
ErrorLogFormat "%{cu}t %M"
ErrorLog /var/log/httpd/keystone-error.log
CustomLog /var/log/httpd/keystone-access.log combined
</VirtualHost>
<VirtualHost *:35357>
WSGIDaemonProcess keystone-admin processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP}
WSGIProcessGroup keystone-admin
WSGIScriptAlias / /var/www/cgi-bin/keystone/admin
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
LogLevel info
ErrorLogFormat "%{cu}t %M"
ErrorLog /var/log/httpd/keystone-error.log
CustomLog /var/log/httpd/keystone-access.log combined
</VirtualHost>
错误日志:
[root@controller ~]# systemctl status httpd
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: failed (Result: exit-code) since 日 2015-12-13 19:53:38 CST; 2s ago
Process: 12963 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 12962 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 12962 (code=exited, status=1/FAILURE)
12月 13 19:53:38 controller httpd[12962]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:5000
12月 13 19:53:38 controller httpd[12962]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:5000
12月 13 19:53:38 controller httpd[12962]: no listening sockets available, shutting down
12月 13 19:53:38 controller httpd[12962]: AH00015: Unable to open logs
12月 13 19:53:38 controller systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
12月 13 19:53:38 controller kill[12963]: kill: cannot find process ""
12月 13 19:53:38 controller systemd[1]: httpd.service: control process exited, code=exited status=1
12月 13 19:53:38 controller systemd[1]: Failed to start The Apache HTTP Server.
12月 13 19:53:38 controller systemd[1]: Unit httpd.service entered failed state.
|
|