安装笔记

1. download python pkg

https://www.python.org/downloads/

2. install python

/Library/Frameworks/Python.framework/Versions/

3. check versions in terminal

python3 //查看version

pip3 --version //查看版本和路径

4. install scrapy

pip3 install Scrapy

5. download and install mongodb

https://www.mongodb.com/download-center/community

unzip file and rename folder name 'mongodb', put to a place and open terminal

6. set mongodb path and check version

export PATH=/Users/eayon/Documents/Develop/mongodb/bin:$PATH

terminal: mongod --version

7. add folders for mongodb

安装笔记_第1张图片

edit new file mongodb.conf :

#数据库路径

dbpath=/Users/eayon/Documents/Develop/mongodb/db/

#日志输出文件路径

logpath=/Users/eayon/Documents/Develop/mongodb/logs/mongodb.log

#错误日志采用追加模式,配置这个选项后mongodb的日志会追加到现有的日志文件,而不是从新创建一个新文件

logappend=true

#启用日志文件,默认启用

journal=true

#这个选项可以过滤掉一些无用的日志信息,若需要调试使用请设置为false

quiet=false

#是否后台启动,有这个参数,就可以实现后台运行

fork=true

#端口号 默认为27017

port=27017

#指定存储引擎(默认不需要指定)

#storageEngine=mmapv1

#开启网页日志监控,有这个参数就可以在浏览器上用28017查看监控界面 3.6以后已移除

#httpinterface=true 

#原文:https://blog.csdn.net/thatway_wp/article/details/79362261

8. save the file and start service for mongodb

mongod -f /Users/eayon/Documents/Develop/mongodb/etc/mongodb.conf


9. Stop mongodb service

ps -ef|grep mongo

10. kill the process for mongo


安装笔记_第2张图片

kill 24910

你可能感兴趣的:(安装笔记)