nginx:1.21.6
php:7.4.28
安装nginx
brew install nginx
nginx命令生效
vim ~/.bash_profile
# 添加一行
export PATH="$(brew --prefix nginx)/bin:$PATH"
#重启终端配置
source ~/.bash_profile
将默认的/scripts$fastcgi_script_name -》 $document_root$fastcgi_script_name
来源地址:https://blog.csdn.net/Dead___Lock/article/details/127206996