运维平台
-
技术栈
Tornado Bootstrap MongoDB
- Ansibe UI
- 配置数据库
-
创建mongodb数据库
db.createCollection("zsphere")
-
添加用户
db.createUser( { user: "zsphere", pwd: "zsphere", roles: [{role: "dbOwner", db: "zsphere"}] } )
-
配置virtualenv环境
cd /opt virtualenv zsphere source zsphere/bin/active
-
下载源码
git clone https://github.com/devops/zsphere.git
-
安装依赖库
cd zsphere pip install -r requirements.txt
-
直接运行
python runserver.py