安装pip
yum install -y openssl epel-release python-pip
安装Django 1.8.18
pip install Django==1.8.18
安装MariaDB
yum install -y mariadb mariadb-server mariadb-devel
systemctl start mariadb
MysqL_secure_installation
MysqL -u root -p
MariaDB [(none)]> create database weibbix;
安装MysqL-python
yum install -y gcc libffi-devel python-devel openssl-devel
pip install MysqL-python
安装paramiko
pip install paramiko
下载项目
cd /usr/local
git clone https://github.com/huhaiqng/weibbix.git
初始化数据库
python manage.py makemigrations
python manage.py migrate
修改settings.py
ALLOWED_HOSTS = ['*']
修改models.py
# from test.test_imageop import MAX_LEN
启动weibbix
python manage.py runserver 192.168.1.21:80
原文链接:https://www.f2er.com/centos/375285.html