来新公司的差不多一周多的时间在Centos下安装openstack kilo,使用的文档是官方的2015年10月的英文文档,希望大家别把文档搞错了,我之前因为使用了老版本的中文文档,被坑到了。因为kilo的版本更新,很多命令已经逐渐被废弃了,所以建议使用最新版本。
错误1:
配置Apache HTTP server时,
systemctl start httpd.service
报错如下:
Job for httpd.service failed. See ‘systemctl status httpd.service’ and ‘journalctl -xn’ for details.
执行systemctl -l status httpd.service
,显示如下:
Dec 03 13:06:52 controller httpd[31108]: AH00526: Syntax error on line 5 of /etc/httpd/conf.d/wsgi-keystone.conf:
Dec 03 13:06:52 controller httpd[31108]: Invalid command ‘group=keystone’, perhaps misspelled or defined by a module not included in the server configuration
Dec 03 13:06:52 controller systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Dec 03 13:06:52 controller kill[31110]: kill: cannot find process “”
Dec 03 13:06:52 controller systemd[1]: httpd.service: control process exited, code=exited status=1
Dec 03 13:06:52 controller systemd[1]: Failed to start The Apache HTTP Server.
Dec 03 13:06:52 controller systemd[1]: Unit httpd.service entered failed state.
然后编辑/etc/httpd/conf.d/wsgi-keystone.conf,发现’group=keystone’这一行是和前面的连在一起的,如果从官方文档直接复制的话,就会另起一行,注意有两处’group’都是这样。
改好以后重启,又报错如下:
Dec 03 13:46:00 controller httpd[31653]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:5000
Dec 03 13:46:00 controller httpd[31653]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:5000
D