Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

linux-xiayun/DevOps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 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

DevOps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /