Mac之安装mongodb、redis、nginx

brew update
brew install mongodb
brew install redis
brew install nginx
  • 启动、重启、停止方式
brew services start mongodb/redis/nginx
brew services restart mongodb/redis/nginx
brew services stop mongodb/redis/nginx
  • 修改配置文件路径
mongodb: /usr/local/etc/mongod.conf
redis:  /usr/local/etc/redis.conf
nginx: /usr/local/etc/nginx/nginx.conf
  • 如果对于安装的过程有疑问可通过下面的方式查看
brew info mongodb/redis/nginx
    原文作者:Liees
    原文地址: https://www.jianshu.com/p/9eb741428092
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞