基于vue+django开发的网络设备轻量化管理平台
https://zhuanlan.zhihu.com/p/655040014
安装python3 作者开发环境 python3.9.5 其他版本也可以#安装过程不赘述
cd /opt/
python3.9 -m venv py3
以mariadb5为例
yum -y install mariadb*
systemctl enable mariabd
systemctl start mariadb
进入数据库
create database django;
grant all on django.* TO 'django'@'localhost' identified by 'django';
ALTER DATABASE django DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; 修改数据库编码,解决中文乱码问题
cd /opt
git clone https://github.com/XiuziSeven/NetOpsCenter.git
source /opt/py3/bin/activate #进入虚拟环境
cd /opt/NetOpsCenter/
pip install -r requirements.txt
python manage.py makemigrations app
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver 0.0.0.0:8000 然后访问 serverip:8000 即可
注:防火墙放行自行操作