http://www.linuxidc.com/Linux/2016-08/134110.htm
http://my.oschina.net/kcw/blog/318309
./configure --prefix=/usr/local/nginx --sbin-path=/usr/sbin/nginx2 --conf-path=/usr/local/nginx/nginx.conf --error-log-path=/mnt/nginxlog/error.log --http-log-path=/mnt/nginxlog/access.log --pid-path=/mnt/nginxlog/nginx.pid --lock-path=/mnt/nginxlog/nginx.lock --user=nginx --group=nginx --with-http_ssl_module --with-http_flv_module --with-http_stub_status_module --with-http_gzip_static_module --http-client-body-temp-path=/mnt/nginx/client/ --http-proxy-temp-path=/mnt/nginx/proxy/ --http-fastcgi-temp-path=/mnt/nginx/fcgi/ --http-uwsgi-temp-path=/mnt/nginx/uwsgi --http-scgi-temp-path=/mnt/nginx/scgi --with-pcre --with-file-aio --with-http_image_filter_module --add-module=/home/admin/nginx-sticky-module-1.1
nginx 安装sticky遇到的问题 2015-04-22 10:31:40
分类: 系统运维
nginx版本1.6.2
sticky 1.1
./configure --prefix=/usr/local/nginx --with-http_st
ub_status_module --with-http_ssl_module --with-http_realip_module --add-module=/
tmp/soft/nginx-sticky-module-1.1
再执行make && make install时报如下错误
/tmp/soft/nginx-sticky-module-1.1/ngx_http_sticky_misc.c:281: error: too few arg
uments to function ‘ngx_sock_ntop’
make[1]: *** [objs/addon/nginx-sticky-module-1.1/ngx_http_sticky_misc.o] Error 1
make[1]: Leaving directory `/tmp/soft/nginx-1.6.2'
make: *** [build] Error 2
根据资料 把ngx_http_sticky_misc.c 的281行修改如下即可解决问题
原digest->len = ngx_sock_ntop(in,digest
->data, len, 1);
改后digest->len = ngx_sock_ntop(in,sizeof(struct sockaddr_in),digest
->data, len, 1);
分享到:
相关推荐
centOS8安装nginx及nginx配置
centos7.6离线安装nginx
Dockerfile 编译安装nginx FROM hub.c.163.com/netease_comb/centos:7 RUN yum install -y gcc gcc-c++ make openssl-devel pcre-devel #http://nginx.org/download/nginx-1.12.2.tar.gz ADD nginx-1.12.2....
CentOS6/7下nginx完美离线编译包,以及包含的所有依赖。
Centos_6.3_编译安装Nginx+php+Mysql,基础文档
这里记录一下自己在centos7操作系统下安装nginx的过程,以便之后学习时查阅。笔者这里的Linux服务器使用的是腾讯云服务器,本人是一名Java程序员也是Linux的初学者有什么不对的地方请多指教,以后还会有更多的关于...
centos7编译安装nginx
centos6.5下安装配置Nginx,实现负载均衡,IIS服务器;centos6.5下安装配置Nginx,实现负载均衡,IIS服务器
centos7下在有网络和没网络的情况安装nginx;
nginx.conf nginx-1.20.1.tar.gz 这是关于centos8的nginx 和nginx 的配置https文件
非root下,离线安装nginx依赖加nginx安装包,需要先装gcc-c++
Linux系统下安装nginx-1.14.1所需的所有包 以及rpm依赖包,安装文档 https://blog.csdn.net/weixin_41851100/article/details/89565198
centos6.5下编译安装lamp
nginx-1.6.0.tar.gz openssl-1.0.1h.tar.gz pcre-8.35.tar.gz zlib-1.2.8.tar.gz
nginx可以使用各平台的默认包来安装,本文是介绍使用源码编译安装与配置,希望对大家熟悉nginx能够有所帮助。
之前分享过一篇 CentOS下编译安装nginx及配置缩略图插件的方法教程,当时的环境是 CentOS 6.x 和 Nginx 1.9.x 。 本次安装的环境为 CentOS 7.2 和 Nginx 1.11.10, 有些配置以前自启动的方式发生了变化, 这里再记录...
CentOS 6.X 编译安装Nginx1.6.2+MySQL5.6.21+PHP5.6.3 linux CentOS Nginx MySQL PHP 系统运维 所有安装包和说明
Centos6.X安装Nginx教程 https://mp.csdn.net/postedit/51086111
centos 6.0最简化编译安装Nginx+Mysql+PHP+Zend
CentOS7 离线安装nginx.zip