第一步:
[root@iZ2zecudc25w28w3o9mo9sZ nginx-1.20.1]#./configure --prefix=/etc/nginx --error-log-path=/
var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --user=root --group=root --w
ith-stream_ssl_preread_module --with-stream_ssl_module
第二步:
[root@iZ2zecudc25w28w3o9mo9sZ nginx-1.20.1]#make && make install
提示报错:
make -f objs/Makefile
make[1]: Entering directory '/usr/nginx-1.20.1'
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/e
vent -I src/event/modules -I src/os/unix -I objs
-o objs/src/event/ngx_event_connect.o
src/event/ngx_event_connect.c
In file included from src/event/ngx_event_connect.c:11:
src/event/ngx_event_connect.h:50:38: error: duplicate member ‘check_index’
50 | ngx_uint_t check_index;
| ^~~~~~~~~~~
make[1]: *** [objs/Makefile:645: objs/src/event/ngx_event_connect.o] Error 1
make[1]: Leaving directory '/usr/nginx-1.20.1'
make: *** [Makefile:10: build] Error 2