# python2.7
pip install beautifulsoup4
pip install html5lib
pip install requests # require https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
pip install pymongo # http://www.mongodb.org/downloads
# 请谨慎操作, 注意python版本
#更新内核
yum update -y
#安装开发工具
yum groupinstall Base "Development Tools" -y
yum -y install python-setuptools
# 下载、安装
wget https://fastdl.mongodb.org/linux/mongodb-linux-i686-3.2.10.tgz
tar -zxvf mongodb-linux-i686-3.2.10.tgz
mv mongodb-linux-i686-3.2.10 /usr/local/mongodb
# 运行
/usr/local/mongodb/bin/mongod -f /data/mongodb/mongodb.conf --journal --storageEngine=mmapv1
dbpath=/data/mongodb/data
logpath=/data/mongodb/log/log
#storageEngine=wiredTiger
fork=true
auth=false
#wiredTigerCacheSizeGB=12
x64 https://fastdl.mongodb.org/win32/mongodb-win32-i386-3.2.9-signed.msi?_ga=1.91945178.1993393702.1474981843
mongod -dbpath "d:\mongodb\db" --logpath "d:\mongodb\log\mongodb.log" --journal --storageEngine=mmapv1
- 安装服务
mongod -dbpath "d:\mongodb\db" --logpath "d:\mongodb\log\mongodb.log" --journal --storageEngine=mmapv1 --install --serviceName "MongoDB"
- 启动服务
net start MongoDB