安装openstack时apache无法启动

在CentOS 7 上 安装openstack-dashboard时httpd服务启动失败

出现如下的报错信息:

May 22 09:17:05 controller0 python[3431]: CommandError: An error occurred during rendering /usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html: /bin/sh: django_pyscss.compressor.DjangoScssFilter: command not found

May 22 09:17:05 controller0 python[3431]: Found 'compress' tags in:
May 22 09:17:05 controller0 python[3431]: /usr/lib/python2.7/site-packages/horizon/templates/horizon/_conf.html
May 22 09:17:05 controller0 python[3431]: /usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html
May 22 09:17:05 controller0 python[3431]: /usr/lib/python2.7/site-packages/horizon/templates/horizon/_scripts.html
May 22 09:17:05 controller0 python[3431]: Compressing...
May 22 09:17:05 controller0 systemd[1]: httpd.service: control process exited, code=exited status=1
May 22 09:17:05 controller0 systemd[1]: Failed to start The Apache HTTP Server.

centos7 中的python版本为2.7

django-pyscss的版本为要在2.0以上才能正常使用,而自带版本为:

[root@controller0 ~]# yum list|grep django-pyscss
python-django-pyscss.noarch             1.0.5-2.el7              @epel          


所以需要更新django-pyscss版本,过程如下:

1、 首先安装 pip

参照:  PIP Installation

2、 安装新版本django-pyscss

[root@controller0 tmp]#pip install django-pyscss==2.0.2

[root@controller0 tmp]# pip list | grep pyscss

django-pyscss (2.0.2)


重新启动httpd

systemctl start httpd.service



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值