Step 1: 本機(jī)安裝nginx;
brew install nginx
Step 2: 以服務(wù)的形式啟動nginx;
brew services start nginx
Step 3: 修改nginx的配置;
vim /usr/local/etc/nginx/nginx.conf
Step 4: 使修改的配置生效;
nginx -s reload
brew install nginx
brew services start nginx
vim /usr/local/etc/nginx/nginx.conf
nginx -s reload