- Homebrew
如果没有安装,详见https://brew.sh/index_zh-cn.html
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
网友评论