Skip to content

chaishiqi/DevOps-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

此练手项目已废弃,不再更新!

运行环境

Python2.7

Django1.9(pip install django==1.9)

依赖模块:

MySQLdb(apt-get install python-mysqldb)

部署步骤

1.下载源码

git clone https://github.com/lizhenliang/DevOps.git

cd DevOps

2.修改数据库连接地址

vi mysite/settings.py  

3.生成数据库表

python manage.py migrate

4.修改salt rest api连接地址

vi devops/salt_api.py

salt配置:https://github.com/lizhenliang/Shell-Scripts/blob/master/salt-api-config.sh

5.创建登录用户名

python manage.py createsuperuser

6.启动服务

python manage.py runserver 0.0.0.0:8888

7.生成PV/UV图表测试数据脚本

https://github.com/lizhenliang/Shell-Scripts/blob/master/pv_uv_test_data.sh

QQ技术群:323779636(Shell/Python运维开发群)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.8%
  • CSS 17.4%
  • HTML 15.6%
  • Python 10.2%