先配置好2个tomcat(https://www.jianshu.com/p/db08d23049ce)
在使用brew安装nginx(https://www.jianshu.com/p/026d67cc6cb1)
安装后进入到nginx
编辑配置文件nginx.conf,添加红色框内容
然后启动nginx
brew services start nginx
Nginx安装和使用
原文:https://www.cnblogs.com/oldboyooxx/p/9206115.html