Skip to content

Commit

Permalink
Merge pull request welliamcao#26 from staugur/master
Browse files Browse the repository at this point in the history
修改了安装配置时的说明
  • Loading branch information
welliamcao authored Aug 24, 2017
2 parents 49aad56 + 3d892c9 commit 5a4d5af
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,7 @@

四、安装模块
```
# pip install django==1.8.17
# pip install Celery
# pip install django-celery
# pip install celery-with-redis
# pip install djangorestframework
# pip install paramiko
# pip install ansible==2.2.2
# pip install redis
# pip install supervisor
# pip install redis
# pip install MySQL-python
# pip install DBUtils
pip install -r requirements.txt
```

五、安装Redis
Expand Down Expand Up @@ -110,15 +99,16 @@ mysql>\q
```
# cd /path/OpsManage/OpsManage
# vim settings.py
BROKER_URL = redis://192.168.1.233:6379/3 #修改成自己的配置
BROKER_URL = redis://192.168.1.233:6379/3 #修改成自己的配置,格式是redis://[:password]@host:port/db
REDSI_KWARGS_LPUSH = {"host":'192.168.1.233','port':6379,'db':3} #修改成自己的配置
DATABASES = {
'default': {
'ENGINE':'django.db.backends.mysql',
'NAME':'opsmanage',
'USER':'root', #修改成自己的配置
'PASSWORD':'welliam', #修改成自己的配置
'HOST':'192.168.1.233' #修改成自己的配置
'HOST':'192.168.1.233', #修改成自己的配置
'PORT': 3306
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
Expand Down
12 changes: 12 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
django==1.8.17
Celery==3.1.20
django-celery
celery-with-redis
djangorestframework
paramiko
ansible==2.2.2
redis
supervisor
redis
MySQL-python
DBUtils

0 comments on commit 5a4d5af

Please sign in to comment.