yuandan 发表于 2017-12-16 19:13:41

Mac 下mongodb的配置和使用

  最近在学习mongo,记录下学习过程
  首先,https://www.mongodb.com/download-center#community 官网下载 解压到自己喜欢的文件目录下。
  接着 打开配置文件
  第一种方式终端 vim ~/.bash_profile 打开配置文件
  第二种显示隐藏文件defaults write com.apple.finder AppleShowAllFiles -bool true   找到 .bash_profile
  在export PATH 中加入自己的mongo下的bin路径 ,例如我的export PATH= $JAVA_HOME/bin:/Users/xxxx/mongodb/bin:$PATH
  保存修改 source ~/.bash_profile第二种方式的话直接Ctr+s保存。
  执行mongo
页: [1]
查看完整版本: Mac 下mongodb的配置和使用