Openresty 安裝第三方插件
在安裝之前,我們先來看一下我們現有的模塊。
1.將需要安裝的插件zip包傳到linux系統下
2.將zip包解壓 unzip ngx_http_substitutions_filter_module-master.zip
3.進入到openresty的源碼包,並執行命令
./configure --prefix=/usr/local/openresty --add-module=/root/ngx_http_substitutions_filter_module-master
我們可以看到,在安裝過程中該模塊已經導入成功
同時在命令執行成功后要求我們執行gmake和gmake install
按照要求依次執行gmake和gmake install即可
執行完成之后我們再來看一下我們現有的模塊
(查看模塊需要進入到openresty的安裝目錄喲)
