Giter Site home page Giter Site logo

opssam's Introduction

opsSAM

一、基本环境

os: Centos 6.6 x86_64

python: 2.6.6

二、依赖关系

1、python依赖包

pip install -r requirements.txt

2、epel源rpm安装包

mysql-5.5.19

subversion-1.6.11-10

rabbitmq-server-3.1.5-1

cobbler-2.6.3-1

3、其他接口

a)cobbler服务器
  cobbler-2.6.3-1.el6.noarch
  cobbler-web-2.6.3-1.el6.noarch
  
b)saltstack服务器
  salt 2014.7.2 
  salt-api-2014.7.2

c)svn服务器
  subversion-1.6.11-11

4、启动数据库

a)创建登陆用户
  /etc/init.d/mysqld start
  mysqladmin -uroot password opsSAM

b)创建数据库:
  mysql -uroot -popsSAM -e "create database opsSAM;"

c)生成项目数据表:
  cd /your/sitepath/
  python manage.py syncdb

d)创建初始登陆用户admin(密码admin):
  mysql -uroot -popsSAM -e "insert into opsSAM.opsSAM_users(username,password,admin) values ('admin','f313176847fcc0c82dae8e51e0e40b1d33ec7f0fabf279c164f8541ec99f8a06f473b3b1439a41a898aa2f70f076a59bb671e17bed52471cb9adfee9701a7fb5','是');"

5、设置django

opsSAM.opsSAM.settings.py
opsSAM.opsSAM.settings_local.py

三、django生产环境安装(非必须)

推荐nginx+uwsgi(略)

安装后按照实际情况修改scripts/supervisord.conf相关django配置

[program:django]

command=/usr/bin/python /your/sitepath/opsSAM/manage.py runserver 0.0.0.0:80

四、启动

cp scripts/supervisord.conf /etc/

cp scripts/supervisord /etc/init.d/

chmod 755 /etc/init.d/supervisord

/etc/init.d/supervisord start

五、访问地址:

opsSAM前台: http://your_ip/

opsSAM后台: http://your_ip/admin

rabbitmq: http://your_ip:15672/

celery flower: http://your_ip:5555/

supervisor: http://your_ip:9001/

六、demo

demo

demo

demo

demo

demo

demo

上海Linux运维技术总群 QQ: 253534961

二维码加入:

demo

opssam's People

Contributors

morningsong avatar

Watchers

cloud123 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.