1.安装Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.安装nginx
brew install nginx
3.验证结果:安装好了,就可以启动nginx了,终端输入
brew services start nginx
4.启动成功,可以直接转到浏览器输入:
原文地址:https://www.cnblogs.com/qichunlin/p/10252731.html
时间: 2024-10-07 11:31:02