CentOS 7.2下KVM虚拟化管理平台WebVirtMgr部署(2)

75 static files copied.
-------------------------------------------------------------------------------------------------------------
./manage.py createsuperuser 
WARNING:root:No local_settings file found.
Username (leave blank to use 'root'): mgruser
Email address: 10880347@qq.com
Password: 123456
Password (again): 123456
Superuser created successfully.
---------------------------------------------------------------------------------------------------------------
5、webvirtmgr配置
mkdir -pv /var/www
cp -Rv /application/webvirtmgr /var/www/webvirtmgr

vim /etc/nginx/conf.d/webvirtmgr.conf
server {
listen 80 default_server;

server_name $hostname;
#access_log /var/log/nginx/webvirtmgr_access_log;

location /static/ {
root /var/www/webvirtmgr/webvirtmgr; # or /srv instead of /var
expires max;
}

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/14328.html