在安装openstack的过程中apache竟然起不来了
systemctl status httpd.service 查看apache状态
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-08-09 13:20:18 CST; 24s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 19606 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 19604 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 19604 (code=exited, status=1/FAILURE)
Starting The Apache HTTP Server...
Aug 09 13:20:18 vlin121.ywz.com httpd[19604]: AH00526: Syntax error on line 4 of /etc/httpd/conf.d/wsgi-keystone.conf:
Aug 09 13:20:18 vlin121.ywz.com httpd[19604]: Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module not included in the server configuration 看这里 竟然说没由模块
Aug 09 13:20:18 vlin121.ywz.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Aug 09 13:20:18 vlin121.ywz.com kill[19606]: kill: cannot find process ""
Aug 09 13:20:18 vlin121.ywz.com systemd[1]: httpd.service: control process exited, code=exited status=1
Aug 09 13:20:18 vlin121.ywz.com systemd[1]: Failed to start The Apache HTTP Server.
Aug 09 13:20:18 vlin121.ywz.com systemd[1]: Unit httpd.service entered failed state.
Aug 09 13:20:18 vlin121.ywz.com systemd[1]: httpd.service failed.
于是我又检查了一遍
打开这个文件 然而并未发现错误
vim /etc/httpd/conf.d/wsgi-keystone.conf
yum install openstack-keystone httpd mod_wsgi
于是我又安装一遍
再次重启好了
ss -anplt
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 100 127.0.0.1:25 *:*
users:(("master",pid=1567,fd=13))LISTEN 0 128 *:22 *:*
users:(("sshd",pid=1222,fd=3))LISTEN 0 100 ::1:25 :::*
users:(("master",pid=1567,fd=14))LISTEN 0 128 :::5000 :::*
users:(("httpd",pid=20052,fd=6),("httpd",pid=20051,fd=6),("httpd",pid=20050,fd=6),("httpd",pid=20049,fd=6),("httpd",pid=20048,fd=6),("httpd",pid=20042,fd=6))LISTEN 0 80 :::3306 :::*
users:(("mysqld",pid=15663,fd=28))LISTEN 0 128 :::80 :::*
users:(("httpd",pid=20052,fd=4),("httpd",pid=20051,fd=4),("httpd",pid=20050,fd=4),("httpd",pid=20049,fd=4),("httpd",pid=20048,fd=4),("httpd",pid=20042,fd=4))LISTEN 0 128 :::22 :::*
users:(("sshd",pid=1222,fd=4))