1、打开终端(不会打开自己百度)
2、安装Command Line tools
xcode-select --install
3、安装brew命令(照抄就是了)
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
4、安装nginx
brew install nginx
5、启动nginx
sudo nginx
可以了
1、打开终端(不会打开自己百度)
2、安装Command Line tools
xcode-select --install
3、安装brew命令(照抄就是了)
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
4、安装nginx
brew install nginx
5、启动nginx
sudo nginx
可以了