安装nginx:brew install nginx
安装db:brew install mysql/mariadb
查看/安装php版本:brew search php/brew install php@版本
brew services info/start/stop/restart(查看信息/启动/结束/重启) nginx/mysql/...
1:查看端口占用:lsof -i:80
2:检测nginx配置是否正确:nginx -t -c /usr/local/etc/nginx/nginx.conf(nginx.conf路径)
3:数据库备份恢复时,数据长度超限出错时,登录mysql查看并调整相关下面参数
show variables like '%innodb_strict_mode%';
set global innodb_strict_mode = 0/1;