From f40652d6f08937ff4251365875bec29b0f6e6072 Mon Sep 17 00:00:00 2001
From: jly8866 <164473279@qq.com>
Date: Fri, 17 Mar 2017 14:45:09 +0800
Subject: [PATCH] readme
---
README.md | 7 ++++---
archer/settings.py | 10 +++++-----
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 413058d4..9a7215c1 100644
--- a/README.md
+++ b/README.md
@@ -38,11 +38,12 @@ tar -xzvf Python-3.4.1.tar.gz
cd Python-3.4.1
./configure --prefix=/path/to/python3 && make && make install
或者rpm、yum、binary等其他安装方式
-3. 安装所需相关模块:
+3. 安装所需相关模块:
(1)django:
-tar -xzvf Django-1.8.17 && cd Django-1.8.17 && python3 setup.py install
+tar -xzvf Django-1.8.17 && cd Django-1.8.17 && python3 setup.py install
(2)Crypto:
-pip3 install Crypto
+pip3 install Crypto
+pip3 install pycrypto
4. 给python3安装MySQLdb模块:
pip3 install pymysql
记得确保settings.py里有如下两行:
diff --git a/archer/settings.py b/archer/settings.py
index 06a9d03b..ea1d0078 100644
--- a/archer/settings.py
+++ b/archer/settings.py
@@ -112,18 +112,18 @@
'NAME': 'archer',
'USER': 'archer_rw',
'PASSWORD': 'archer_rw',
- 'HOST': '127.0.0.1',
+ 'HOST': '172.21.139.1',
'PORT': '5000'
}
}
#inception组件所在的地址
-INCEPTION_HOST = '192.168.1.11'
+INCEPTION_HOST = '172.16.5.7'
INCEPTION_PORT = '6100'
#查看回滚SQL时候会用到,这里要告诉archer去哪个mysql里读取inception备份的回滚信息和SQL.
#注意这里要和inception组件的inception.conf里的inception_remote_XX部分保持一致.
-INCEPTION_REMOTE_BACKUP_HOST='192.168.1.12'
+INCEPTION_REMOTE_BACKUP_HOST='172.16.5.10'
INCEPTION_REMOTE_BACKUP_PORT=5621
INCEPTION_REMOTE_BACKUP_USER='inception'
INCEPTION_REMOTE_BACKUP_PASSWORD='inception'
@@ -131,8 +131,8 @@
#是否开启邮件提醒功能:发起SQL上线后会发送邮件提醒审核人审核,执行完毕会发送给DBA. on是开,off是关,配置为其他值均会被archer认为不开启邮件功能
MAIL_ON_OFF='on'
-MAIL_REVIEW_SMTP_SERVER='mail.xxx.com'
+MAIL_REVIEW_SMTP_SERVER='172.21.129.215'
MAIL_REVIEW_SMTP_PORT=25
MAIL_REVIEW_FROM_ADDR='archer@xxx.com' #发件人,也是登录SMTP server需要提供的用户名
MAIL_REVIEW_FROM_PASSWORD='' #发件人邮箱密码,如果为空则不需要login SMTP server
-MAIL_REVIEW_DBA_ADDR=['zhangsan@abc.com', 'lisi01@abc.com'] #DBA地址,执行完毕会发邮件给DBA,以list形式保存
+MAIL_REVIEW_DBA_ADDR=['jialiyang@baijiahulian.com', 'zhangpeng@baijiahulian.com'] #DBA地址,执行完毕会发邮件给DBA,以list形式保存