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-2210:31:40

分类:系统运维

nginx版本1.6.2

sticky1.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&&makeinstall时报如下错误

/tmp/soft/nginx-sticky-module-1.1/ngx_http_sticky_misc.c:281:error:toofewarg

umentstofunction‘ngx_sock_ntop’

make[1]:***[objs/addon/nginx-sticky-module-1.1/ngx_http_sticky_misc.o]Error1

make[1]:Leavingdirectory`/tmp/soft/nginx-1.6.2'

make:***[build]Error2

根据资料把ngx_http_sticky_misc.c的281行修改如下即可解决问题

原digest->len=ngx_sock_ntop(in,digest

->data,len,1);

改后digest->len=ngx_sock_ntop(in,sizeof(structsockaddr_in),digest

->data,len,1);

相关推荐