在centos 7.1上部署weibbix

前端之家收集整理的这篇文章主要介绍了在centos 7.1上部署weibbix前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

安装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

猜你在找的CentOS相关文章