命令备忘录
INFO
对于brew
安装的插件等需要特定的命令启动该服务,针对于mac
而记录;
🪫 mongodb
安装地址: https://www.mongodb.com/zh-cn/docs/v6.0/tutorial/install-mongodb-on-os-x/
- 启动服务bash
brew services start mongodb/brew/mongodb-community
- 停止服务bash
brew services stop mongodb/brew/mongodb-community
🪫 nginx
安装
bashbrew install nginx
启动
bashbrew services start nginx
停止
bashbrew services stop nginx
重启
bashbrew services restart nginx
重新加载配置文件
bashnginx -s reload
验证 nginx 配置文件是否正确
bashnginx -t