CentOS 6 下编译安装nginx 参数配置

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);
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值