OpenStack-liberty版Dashboard部署(七)

安裝Dashbord:
[root@hostnamelinux-node1 ~]# yum -y install openstack-dashboard

配置Dashbord:

[root@hostnamelinux-node1 ~]# vim /etc/openstack-dashboard/local_settings
OPENSTACK_HOST = "192.168.56.11"
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
ALLOWED_HOSTS = ['*',]
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
    }
}
OPENSTACK_HYPERVISOR_FEATURES = {
    'can_set_mount_point': True,
    'can_set_password': True,
    'requires_keypair': True,
}
TIME_ZONE = "Asia/Shanghai"

重啓httpd:
[root@hostnamelinux-node1 ~]# systemctl restart httpd

通過瀏覽器訪問Dashbord;

[root@hostnamelinux-node1 ~]# cat /etc/httpd/conf.d/openstack-dashboard.conf 
WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi

WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /dashboard/static /usr/share/openstack-dashboard/static

<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
  Options All
  AllowOverride All
  Require all granted
</Directory>

<Directory /usr/share/openstack-dashboard/static>
  Options All
  AllowOverride All
  Require all granted
</Directory>

賬號demo,密碼demo;
OpenStack-liberty版Dashboard部署(七)

vnc監聽地址5900;

[root@hostname linux-node2 ~]# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN      15151/qemu-kvm      
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1273/sshd           
tcp6       0      0 :::22                   :::*                    LISTEN      1273/sshd    

novncproxy監聽端口6080;

[root@hostnamelinux-node1 ~]# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:15672           0.0.0.0:*               LISTEN      970/beam.smp        
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1381/master         
tcp        0      0 0.0.0.0:6080            0.0.0.0:*               LISTEN      2567/python2        
tcp        0      0 0.0.0.0:9696            0.0.0.0:*               LISTEN      2306/python2        
tcp        0      0 0.0.0.0:8774            0.0.0.0:*               LISTEN      2570/python2        
tcp        0      0 0.0.0.0:8775            0.0.0.0:*               LISTEN      2570/python2        
tcp        0      0 0.0.0.0:9191            0.0.0.0:*               LISTEN      977/python2         
tcp        0      0 0.0.0.0:25672           0.0.0.0:*               LISTEN      970/beam.smp        
tcp        0      0 0.0.0.0:11211           0.0.0.0:*               LISTEN      968/memcached       
tcp        0      0 0.0.0.0:9292            0.0.0.0:*               LISTEN      981/python2         
tcp        0      0 0.0.0.0:4369            0.0.0.0:*               LISTEN      1/systemd           
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      975/sshd            
tcp6       0      0 ::1:25                  :::*                    LISTEN      1381/master         
tcp6       0      0 :::35357                :::*                    LISTEN      1920/httpd          
tcp6       0      0 :::5672                 :::*                    LISTEN      970/beam.smp        
tcp6       0      0 :::5000                 :::*                    LISTEN      1920/httpd          
tcp6       0      0 :::3306                 :::*                    LISTEN      1296/mysqld         
tcp6       0      0 ::1:11211               :::*                    LISTEN      968/memcached       
tcp6       0      0 :::80                   :::*                    LISTEN      1920/httpd          
tcp6       0      0 :::22                   :::*                    LISTEN      975/sshd  

官方鏡像地址:
https://docs.openstack.org/image-guide/obtain-images.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章