原已经安装好的nginx,现在需要添加一个未被编译安装的模块:

nginx -V 可以查看原来编译时都带了哪些参数

原来的参数:
--prefix=/app/nginx

添加的参数: 
--with-http_stub_status_module --with-http_ssl_module --with-http_realip_module

步骤如下:
1. 使用参数重新配置:
./configure --prefix=/app/nginx -user=nobody -group=nobody --with-http_stub_status_module \
--with-http_ssl_module --with-http_realip_module \
--add-module=../nginx_upstream_hash-0.3.1/ \
--add-module=../gnosek-nginx-upstream-fair-2131c73/
2. 编译:
make
#不要make install,否则就是覆盖安装
3. 替换nginx二进制文件:
cp /app/nginx/sbin/nginx /app/nginx/sbin/nginx.bak
cp ./objs/nginx /app/nginx/sbin/

最新文章

  1. ARC
  2. 关于hadoop
  3. 装13失败后的逆袭(ComboBox的联动)
  4. [译]Testing Node.js With Mocha and Chai
  5. 安卓:drawable
  6. js获取服务器时间戳
  7. Latex 笔记
  8. phpStudy启动失败时的解决方法
  9. Creating Your Own Server: The Socket API, Part 1
  10. WPF 之 利用Visibility属性进行Item模板切换
  11. windows phone使用sharpcompress进行解压压缩文件
  12. Course
  13. asp.net session分布式共享解决方案
  14. es6在网页中模块引入的方法
  15. 第42章:MongoDB-集群--Sharding(分片)--单机的搭建
  16. collaborative filtering协同过滤
  17. python设计模式之门面模式
  18. [转载]ASP.NET Error – Adding the specified count to the semaphore would cause it to exceed its maximum count
  19. sp_configure命令开启组件Agent XPs,数据库计划(Maintenance Plan)
  20. bzoj2594

热门文章

  1. 20160226.CCPP体系详解(0036天)
  2. iOS开源加密相册Agony的实现(四)
  3. Redis之(三)管理命令
  4. Android等宽字体
  5. 利用LogParser将IIS日志插入到数据库
  6. DB查询分析器7.01新增的周、月SQL执行计划功能
  7. springMVC源码分析--RequestMappingHandlerAdapter(五)
  8. 一起聊聊什么是P问题、NP问题、NPC问题
  9. ROS(indigo) turtlebot2 + android一些有趣应用
  10. ROS机器人程序设计(原书第2版)补充资料 (零) 源代码、资料和印刷错误修订等 2017年01月01日更新