openstack安装Apache HTTP后却无法启动它

在完成OpenStack的Apache HTTP安装并配置wsgi-keystone.conf后,遇到启动故障。首先检查wsgi配置文件是否存在错误,其次确认wsgi模块是否已安装。若问题持续,可能涉及httpd.conf配置错误,此时可通过删除配置文件,卸载并重新安装httpd及其依赖解决。

当我们安装完http,配置好httpd.conf文件与wsgi-keystone.conf文件后却发现无法启动了

[root@controller ~]# systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.


可以用一个非常简单的方法排错

现将wsgi-keystone.conf文件换个名字看看能不能成功启动

[root@controller ~]# mv /etc/httpd/conf.d/wsgi-keystone.conf /etc/httpd/conf.d/wsgi-keystone.conf.bak
[root@controller ~]# systemctl start httpd.service

如果能启动成功说明http.conf配置文件没有错,在wsgi-keystone.conf上有问题,这事问题基本上可以确定为两种:

1.wsgi-keystone.conf文件配置错误仔细检查

2.如果发现自己配置没有错可能是wsgi模块没有安装


如果还是不能启动成功,说明http.conf的配置就有问题

1.仔细检查配置文件更改

2.如果并不知道哪里问题,不会看日志就先删除httpd.conf配置文件再卸载httpd,重新配置(卸载后mod_wsgi模块也没有了需要安装)

1.删除原有配置文件
rm /etc/httpd/conf/httpd.conf

2.卸载httpd
yum remove httpd

3.安装httpd与mod_wsgi
yum install httpd mod_wsgi

4.重新修改配置文件

启动成功后记得查看是否成功开启5000与35357端口

[root@controller conf.d]# systemctl restart httpd.service
[root@controller conf.d]# ss -ntl | grep -E "5000|35357"
LISTEN     0      128         :::5000                    :::*                  
LISTEN     0      128         :::35357                   :::*                  

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值