Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jly8866 committed Mar 17, 2017
1 parent 63f25f5 commit f40652d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ tar -xzvf Python-3.4.1.tar.gz <br/>
cd Python-3.4.1 <br/>
./configure --prefix=/path/to/python3 && make && make install
或者rpm、yum、binary等其他安装方式
3. 安装所需相关模块:
3. 安装所需相关模块:<br/>
(1)django:<br/>
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<br/>
(2)Crypto:<br/>
pip3 install Crypto
pip3 install Crypto<br/>
pip3 install pycrypto
4. 给python3安装MySQLdb模块:<br/>
pip3 install pymysql<br/>
记得确保settings.py里有如下两行:<br/>
Expand Down
10 changes: 5 additions & 5 deletions archer/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,27 +112,27 @@
'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'

#是否开启邮件提醒功能:发起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='[email protected]' #发件人,也是登录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形式保存

0 comments on commit f40652d

Please sign in to comment.