1. 安装brew 2. 安装nginx brew install nginx 3. 运行nginx brew services start nginx/brew services restart nginx