echo-nginx-module的安裝、配置、使用


一、下載壓縮包

[root@www nginx-1.16.0]# wget https://github.com/openresty/echo-nginx-module/archive/v0.61.tar.gz

二、解壓v0.61.tar.gz

[root@www nginx]# tar zxf v0.61.tar.gz

三、進入nginx-1.16.0目錄,重新預編譯 && 編譯 && 安裝

[root@www nginx-1.16.0]# ./configure --add-module=../echo-nginx-module && make -j4 && make install
#--add-module:添加第三方模塊
#-j4:4個編譯命令同時執行,提高效率

四、安裝完成后,查看當前Nginx的詳細信息

[root@www sbin]# ./nginx -V
nginx version: nginx/1.16.0
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) 
configure arguments: --add-module=../echo-nginx-module-0.61

五,重啟Nginx,使模塊生效

[root@www sbin]# ./nginx -s stop
[root@www sbin]# ./nginx
[root@www sbin]# ps -ef|grep nginx
root     130097      1  0 18:07 ?        00:00:00 nginx: master process ./nginx
nobody   130098 130097  0 18:07 ?        00:00:00 nginx: worker process
root     130100 129639  0 18:07 pts/2    00:00:00 grep --color=auto nginx

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM