经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » 数据库/运维 » Nginx » 查看文章
echo-nginx-module的安装、配置、使用
来源:cnblogs  作者:菜鹌鹑  时间:2019/7/15 8:41:12  对本文有异议

一、下载压缩包

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

二、解压v0.61.tar.gz

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

三、进入nginx-1.16.0目录,重新预编译 && 编译 && 安装

  1. [root@www nginx-1.16.0]# ./configure --add-module=../echo-nginx-module && make -j4 && make install
    #--add-module:添加第三方模块
    #-j4:4个编译命令同时执行,提高效率

四、安装完成后,查看当前Nginx的详细信息

  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

五,重启Nginx,使模块生效

  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

 

原文链接:http://www.cnblogs.com/quail2333/p/11181589.html

 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号