如何实现openstack swift的web访问
1个回答
展开全部
1、安装相关包
# apt-get install memcached libapache2-mod-wsgi openstack-dashboard
安装完成之后卸载嵌有UBUNTU主题,防止翻译等错误
# apt-get remove --purge openstack-dashboard-ubuntu-theme
2、修改/etc/ openstack-dashboard/local_settings.py中CACHES选项的 ['default']['LOCATION']去匹配/etc/memcached.conf.的值
CACHES = {
'default': {
'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION' : '127.0.0.1:11211'
}
}
3、编辑/etc/openstack-dashboard/local_settings.py里面的OPENSTACK_HOST选项,值修改为controller
OPENSTACK_HOST = "controller"
4、重启相关apache服务,并登陆到horizon相关界面
# service apache2 restart
# service memcached restart
# apt-get install memcached libapache2-mod-wsgi openstack-dashboard
安装完成之后卸载嵌有UBUNTU主题,防止翻译等错误
# apt-get remove --purge openstack-dashboard-ubuntu-theme
2、修改/etc/ openstack-dashboard/local_settings.py中CACHES选项的 ['default']['LOCATION']去匹配/etc/memcached.conf.的值
CACHES = {
'default': {
'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION' : '127.0.0.1:11211'
}
}
3、编辑/etc/openstack-dashboard/local_settings.py里面的OPENSTACK_HOST选项,值修改为controller
OPENSTACK_HOST = "controller"
4、重启相关apache服务,并登陆到horizon相关界面
# service apache2 restart
# service memcached restart
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询