命令备忘录

对于brew安装的插件等需要特定的命令启动该服务,针对于mac而记录;

🪫 mongodb

安装地址: https://www.mongodb.com/zh-cn/docs/v6.0/tutorial/install-mongodb-on-os-x/

  1. 启动服务
    1
    brew services start mongodb/brew/mongodb-community
  2. 停止服务
    1
    brew services stop mongodb/brew/mongodb-community

🪫 nginx

  1. 安装

    1
    brew install nginx
  2. 启动

    1
    brew services start nginx
  3. 停止

    1
    brew services stop nginx
  4. 重启

    1
    brew services restart nginx
  5. 重新加载配置文件

    1
    nginx -s reload
  6. 验证 nginx 配置文件是否正确

    1
    nginx -t