美文网首页
安装笔记

安装笔记

作者: Eayon_Dong | 来源:发表于2019-03-09 02:27 被阅读0次

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

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

kill 24910

相关文章

  • Windows上印象笔记的使用

    印象笔记的安装 印象笔记的基本使用 印象笔记的剪藏功能(非常强大) 印象笔记的圈点功能 拓展内容 印象笔记的安装:...

  • 2020-03-17

    spark学习笔记centos安装Oracle VirtualBox: Centos安装Vagrant

  • Scrapy笔记

    Scrapy笔记 安装scrapy框架: 安装scrapy:通过pip install scrapy即可安装。 如...

  • ubuntu 下载AOSP源码过程记录

    安装ubuntu 16.04到笔记本,笔记本为DELL E7450 安装完后,无法启动,这是因为选了UEFI安装模...

  • 自学是门手艺 环境安装笔记

    自学是门手艺 环境安装笔记 已经注册github就不需要注册 已经在mac安装好git 这个笔记,列出了安装中出现...

  • 笔记01:MySQL server安装

    window 安装MySQL server 笔记02:笔记02:sqlalchemy-连接MySQL笔记03:sq...

  • Gulp学习

    postcss使用笔记 安装 使用 jshint 安装 使用 建立配置文件 .jshintrc ESlint 安装...

  • 被坑惨了,自己记录下来,下次省的找

    electron 国内安装笔记 采用yarn安装 yarn config set registry https:/...

  • markdown转pdf

    图文教程请移步github或有道云笔记 有道云笔记 github 安装sublime text编辑器 安装pack...

  • Vapor安装/运行

    小白上路充当笔记使用! Mac系统下安装 安装Homebrew 安装Vapor 安装验证 新建项目 创建Xcode...

网友评论

      本文标题:安装笔记

      本文链接:https://www.haomeiwen.com/subject/hypjpqtx.html