环境准备:
(1)克隆代码到本地: git clone https://github.com/jly8866/archer.git 或 下载zip包
(2)安装mysql 5.6实例,请注意保证mysql数据库默认字符集为utf8或utf8mb4
(3)安装inception
安装python3:
tar -xzvf Python-3.4.1.tar.gz
cd Python-3.4.1
./configure --prefix=/path/to/python3 && make && make install
或者rpm、yum、binary等其他安装方式
安装所需相关模块:
(1)django:
tar -xzvf Django-1.8.17 && cd Django-1.8.17 && python3 setup.py install
(2)Crypto:
pip3 install Crypto
pip3 install pycrypto
给python3安装MySQLdb模块:
pip3 install pymysql
记得确保settings.py里有如下两行:
import pymysql
pymysql.install_as_MySQLdb()
由于python3使用的pymysql模块里并未兼容inception返回的server信息,因此需要编辑/path/to/python3/lib/python3.4/site-packages/pymysql/connections.py:
在if int(self.server_versi