安装openresty
brew tap openresty/brew
brew install openresty
详细可参考官方文档:https://openresty.org/cn/download.html
安装完成
==> Caveats
You can find the configuration files for openresty under /opt/homebrew/etc/openresty/.
To start openresty/brew/openresty now and restart at login:
brew services start openresty/brew/openresty
Or, if you don't want/need a background service you can just run:
openresty
==> Summary
🍺 /opt/homebrew/Cellar/openresty/1.21.4.1_1: 307 files, 7.1MB, built in 33 seconds
==> Running `brew cleanup openresty`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Caveats
==> openresty
You can find the configuration files for openresty under /opt/homebrew/etc/openresty/.
To start openresty/brew/openresty now and restart at login:
brew services start openresty/brew/openresty
Or, if you don't want/need a background service you can just run:
openresty