安装lua
https://www.jianshu.com/p/3869b277798c
安装openresty
brew install openresty/brew/openresty
如果一直处于Updating Homebrew...直接让ctr+c停止更新,直接下载openresty
https://www.cnblogs.com/tulintao/p/11134877.html
下载过程中失败
Error: Failed to download resource "openresty-openssl--patch"
Download failed: https://raw.githubusercontent.com/openresty/openresty/master/patches/openssl-1.1.0d-sess_set_get_cb_yield.patch
原因 :https://segmentfault.com/a/1190000022730322
需要配置hosts文件
解决:在本地hosts文件加上:199.232.4.133 raw.githubusercontent.com
openresty 在mac上的路径
/usr/local/opt/openresty
运行openresty
控制台输入openresty
网页:http://localhost/