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

  1. [root@www nginx]# tar zxf v0.61.tar.gz
  1. [root@www nginx-1.16.0]# ./configure --add-module=../echo-nginx-module && make -j4 && make install
    #--add-module:添加第三方模块
    #-j4:4个编译命令同时执行,提高效率
  1. [root@www sbin]# ./nginx -V
  2. nginx version: nginx/1.16.0
  3. built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
  4. configure arguments: --add-module=../echo-nginx-module-0.61
  1. [root@www sbin]# ./nginx -s stop
  2. [root@www sbin]# ./nginx
  3. [root@www sbin]# ps -ef|grep nginx
  4. root 130097 1 0 18:07 ? 00:00:00 nginx: master process ./nginx
  5. nobody 130098 130097 0 18:07 ? 00:00:00 nginx: worker process
  6. root 130100 129639 0 18:07 pts/2 00:00:00 grep --color=auto nginx

 

版权声明:本文为quail2333原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/quail2333/p/11181589.html