openstack安装笔记 Horizon(五)

适用的django

导入key

cd/var/www/html/epel-depends

rpm--importRPM-GPG-KEY-EPEL-6

•安装dashboard软件包

yuminstall-ymod_wsgihttpdmod_sslmemcachedpython-memcachedopenstack-dashboard

•修改dashboard的配置文件/etc/openstack-dashboard/local_settings

修改如下几行
ALLOWED_HOSTS = ['*'] 
OPENSTACK_HOST = "172.16.21.233"
        
	•	设置目录权限。
chown -R apache:apache /etc/openstack-dashboard/ /var/lib/openstack-dashboard/;
	•	设置httpd和memcached服务开机自启动,并启动服务
chkconfig httpd on 
chkconfig memcached on

service httpd start
service memcached start

访问

http://172.16.21.233/dashboard

apache的配置在

vim/etc/httpd/conf.d/openstack-dashboard.conf

python的文件在

/usr/share/openstack-dashboard/openstack_dashboard/

log在/var/log/keystone/keystone.log

相关推荐