- 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