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

被折叠的 条评论
为什么被折叠?



