python爬虫环境安装-mongodb
MongoDB 是一个基于分布式文件存储的数据库。由 C++ 语言编写。旨在为 WEB 应用提供可扩展的高性能数据存储解决方案。
MongoDB 是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库当中功能最丰富,最像关系数据库的。
MongoDB 的下载地址:http://dl.mongodb.org/dl/win32/x86_64
下载完成后,安装按照默认配置,很快就安装完成了。
安装完成后,要运行mongodb,需要做如下设置:
\MongoDB\Server\3.4下新建目录data,用于存储数据库数据
进入data目录,建立db文件夹,用于存储相关数据库数据和配置
进入bin目录,按住shift键,点击右键,选择打开命令行窗口,输入如下命令,运行服务端,指定数据存储目录:mongod –dbpath “C:\Program Files\MongoDB\Server\3.4\data\db”(如果路径中带有空格,请将路径加上双引号)
服务端启动后,在浏览器中输入localhost:27017(如果开启了防火墙,请先将防火墙关闭),出现如下提醒界面,则安装成功。

启动mongodb客户端,可连接上服务端,用命令行做操作,具体如下所示:

将mongdb服务端配置成服务,自动启动
1:以管理员权限运行cmd
2:进入mongd所在的目录,执行如下命令:
3:mongod –bind_ip 0.0.0.0 –logpath “C:\Program Files\MongoDB\Server\3.4\data\logs\mongo.log” –logappend –dbpath “C:\Program Files\MongoDB\Server\3.4\data\db” –port 27017 –serviceName “MongoDB” –serviceDisplayName “MongoDB” –install
4:查看服务,看mongodb服务是否配置成功,如果配置成功,如下图所示:

MongoDB可视化管理工具安装
安装Robomongo-下载地址:https://robomongo.org/download









