预览加载中,请您耐心等待几秒...
1/5
2/5
3/5
4/5
5/5

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

OpenStack安装手册-HORIZON管理面板配置导读:本文介绍OpenStack的HORIZON管理面板配置,首先建立KEYSTONE服务数据库,然后配置Apache。目录上一篇下一篇3.18HORIZON管理面板配置****建立KEYSTONE服务数据库mysql-uroot-popenstack-e'createdatabasedashboard'•配置apache编辑/etc/httpd/conf.d/django.conf,更改成如下内容:WSGISocketPrefix/tmp/horizon<VirtualHost*:80>WSGIScriptAlias//opt/horizon-2012.1/openstack_dashboard/wsgi/django.wsgiWSGIDaemonProcesshorizonuser=apachegroup=apacheprocesses=3threads=10SetEnvAPACHE_RUN_USERapacheSetEnvAPACHE_RUN_GROUPapacheWSGIProcessGrouphorizonDocumentRoot/opt/horizon-2012.1/.blackhole/Alias/media/opt/horizon-2012.1/openstack_dashboard/static<Directory/>OptionsFollowSymLinksAllowOverrideNone</Directory><Directory/opt/horizon-2012.1/>OptionsIndexesFollowSymLinksMultiViewsAllowOverrideNoneOrderallow,denyallowfromall</Directory>ErrorLog/var/log/httpd/error.logLogLevelwarnCustomLog/var/log/httpd/access.logcombined</VirtualHost>mkdir/opt/horizon-2012.1/.blackhole•配置HORIZON在/opt/horizon-2012.1/openstack/local下建立local.py文件,内容如下:dashboardsettingsimportosDEBUG=FalseTEMPLATE_DEBUG=DEBUGPROD=FalseUSE_SSL=FalseLOCAL_PATH=os.path.dirname(os.path.abspath(__file__))#FIXME:Weneedtochangethistomysql,insteadofsqlite.DATABASES={'default':{'ENGINE':'django.db.backends.mysql','NAME':'dashboard','USER':'root','PASSWORD':'openstack','HOST':'localhost','PORT':'3306',},}#ThedefaultvaluesforthesetwosettingsseemtocauseissueswithapacheCACHE_BACKEND='dummy://'SESSION_ENGINE='django.contrib.sessions.backends.cached_db'#SendemailtotheconsolebydefaultEMAIL_BACKEND='django.core.mail.backends.console.EmailBackend'#Orsendthemto/dev/null#EMAIL_BACKEND='django.core.mail.backends.dummy.EmailBackend'#django-mailerusesadifferentsettingsattributeMAILER_EMAIL_BACKEND=EMAIL_BACKEND#Configuretheseforyouroutgoingemailhost#EMAIL_HOST='smtp.my-company.com'#EMAIL_PORT=25