分享

在控制节点配置HTTP服务后启动失败

445433045 发表于 2015-12-13 19:53:52 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 5 14100
本帖最后由 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.



已有(5)人评论

跳转到指定楼层
atsky123 发表于 2015-12-13 20:36:19
重启下试试
回复

使用道具 举报

langke93 发表于 2015-12-13 20:39:15
配置文件可能有些问题

kilo版的这个,下面有不一样的地方

Listen 5000
Listen 35357

<VirtualHost *:5000>
    WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone display-name=%{GROUP}
    WSGIProcessGroup keystone-public
    WSGIScriptAlias / /var/www/cgi-bin/keystone/main
    WSGIApplicationGroup %{GLOBAL}
    WSGIPassAuthorization On
    <IfVersion >= 2.4>
      ErrorLogFormat "%{cu}t %M"
    </IfVersion>
    LogLevel info
    ErrorLog /var/log/apache2/keystone-error.log
    CustomLog /var/log/apache2/keystone-access.log combined
</VirtualHost>

<VirtualHost *:35357>
    WSGIDaemonProcess keystone-admin processes=5 threads=1 user=keystone display-name=%{GROUP}
    WSGIProcessGroup keystone-admin
    WSGIScriptAlias / /var/www/cgi-bin/keystone/admin
    WSGIApplicationGroup %{GLOBAL}
    WSGIPassAuthorization On
    <IfVersion >= 2.4>
      ErrorLogFormat "%{cu}t %M"
    </IfVersion>
    LogLevel info
    ErrorLog /var/log/apache2/keystone-error.log
    CustomLog /var/log/apache2/keystone-access.log combined
</VirtualHost>


参考openstack

【Kilo】入门 【keystone篇】五:keystone安装与配置
http://www.aboutyun.com/thread-13080-1-1.html


回复

使用道具 举报

445433045 发表于 2015-12-13 20:41:06

重启也没有
回复

使用道具 举报

445433045 发表于 2015-12-13 21:17:21
langke93 发表于 2015-12-13 20:39
配置文件可能有些问题

kilo版的这个,下面有不一样的地方

谢了,做了好久都不行
回复

使用道具 举报

熠熠for云 发表于 2017-3-19 22:36:02
(⊙0⊙)    谢谢了  @langke93    我今天也正好遇到题主遇到的问题, 调了几个小时都没调好, 刚才加了那一句居然就通了      kilo版的     
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条