安裝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/