参考博文
https://segmentfault.com/a/1190000000352351
http://www.ttlsa.com/python/how-to-install-and-use-pip-ttlsa/
1、准备环境
# wget https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c
0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz#md5=87083c0b9867963b29f7aba3613e8f4a ##安装pip
# tar xvf pip-8.1.2.tar.gz -C /usr/local/
# cd /usr/local/pip-8.1.2/
# python setup.py install
# pip ##输出Usage即安装成功
# yum install mongodb mongodb-server ##安装mongodb
# mkdir /data/mongodb/
# /usr/bin/mongod --dbpath /data/mongodb/
2、安装explainshell
# git clone https://github.com/idank/explainshell.git ##克隆explainshell的git仓库到本地
# cd explainshell/
# pip install -r requirements.txt ##python库安装
# mongorestore dump/explainshell
# mongorestore -d explainshell_tests dump/explainshell ##加载分类数据
# make tests ##运行测试
3、配置man page
# cd manpages ##删除git仓库自带的man page
# rm -rf 1
# ln -sv /usr/share/man/man1 manpages/1
# ln -sv /usr/share/man/man8 manpages/8
# make serve ##启动服务
python runserver.py
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger pin code: 330-911-618
浏览器本地访问http://127.0.0.1:5000/