`

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);
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics