Install OpenStack Kilo Dashboard wiht Nginx + uWSGI On RHEL7.1
生活随笔
收集整理的這篇文章主要介紹了
Install OpenStack Kilo Dashboard wiht Nginx + uWSGI On RHEL7.1
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、安裝Horizon、Nginx、uWSGI
? ? yum install -y?uwsgi-plugin-python?openstack-dashboard uwsgi nginx
二、配置uWSGI
cat >/etc/uwsgi.ini <<EOF [uwsgi] plugins = python master = true processes = 10 threads = 2 chmod-socket = 666socket = 127.0.0.1:9000 pidfile = /tmp/horizon.pidpythonpath = /usr/share/openstack-dashboard chdir = /usr/share/openstack-dashboard/openstack_dashboard wsgi-file = /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi EOF三、配置Nginx
cat >/etc/nginx/conf.d/horizon.conf <<EOF server { listen 80;server_name 127.0.0.1;location / {include uwsgi_params;uwsgi_pass 127.0.0.1:9000;}location /static {alias /usr/share/openstack-dashboard/static/;} } EOF?
四、配置Horizon
python /usr/share/openstack-dashboard/manage.py compress修改:/etc/openstack-dashboard/local_settings中的WEBROOT為:‘/’
?
五、啟動服務
systemctl start uwsgi.servicesystemctl start nginx.service?
六、參考資料:
https://developer.rackspace.com/blog/keystone_horizon_nginx/
http://www.xiaoyinzei.com/2015/07/
http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html
轉載于:https://www.cnblogs.com/killingwolf/p/4949822.html
總結
以上是生活随笔為你收集整理的Install OpenStack Kilo Dashboard wiht Nginx + uWSGI On RHEL7.1的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: echarts制作3D锥形金字塔
- 下一篇: HttpsURLConnection 返