Nginx 是一位俄罗斯人 Igor Sysoev(伊戈尔·塞索斯夫)编写的一款高性能HTTP和反向代理服务器。

  Nginx 主要是有C编写的,安装Nginx需要GCC编译器(GNU Compiler Collection)。除了这个,Nginx的一些模块需要其他第三方库的支持,例如gzip的zlilb库,rewrite的pcre库,ssl功能需要openssl库等。

1)安装Pcre

  Perl语言兼容正则表达式 (Perl Compatible Regular Expressions) ,首先安装pcre库,到它的官网下载,下载后解压。

1 tar -zxvf nginx-1.16.1.tar.gz

  赋予目录下所有文件所有权限

1 chmod -R 777 pcre-8.44

  ./configure 初始化配置

  make 编译

  make install 安装,注意需要root权限

  若没有sudo,则会出现以下错误

  使用以下命令测试是否安装成功pcre

2)安装zlib库

  使用 wget 指令从官网下载

1 wget http://www.zlib.net/zlib-1.2.11.tar.gz 

  下载完成后解压

  1 ubuntu@node01:~/Nginx$ tar -zxvf zlib-1.2.11.tar.gz
2 zlib-1.2.11/
3 zlib-1.2.11/adler32.c
4 zlib-1.2.11/amiga/
5 zlib-1.2.11/ChangeLog
6 zlib-1.2.11/CMakeLists.txt
7 zlib-1.2.11/compress.c
8 zlib-1.2.11/configure
9 zlib-1.2.11/contrib/
10 zlib-1.2.11/crc32.c
11 zlib-1.2.11/crc32.h
12 zlib-1.2.11/deflate.c
13 zlib-1.2.11/deflate.h
14 zlib-1.2.11/doc/
15 zlib-1.2.11/examples/
16 zlib-1.2.11/FAQ
17 zlib-1.2.11/gzclose.c
18 zlib-1.2.11/gzguts.h
19 zlib-1.2.11/gzlib.c
20 zlib-1.2.11/gzread.c
21 zlib-1.2.11/gzwrite.c
22 zlib-1.2.11/INDEX
23 zlib-1.2.11/infback.c
24 zlib-1.2.11/inffast.c
25 zlib-1.2.11/inffast.h
26 zlib-1.2.11/inffixed.h
27 zlib-1.2.11/inflate.c
28 zlib-1.2.11/inflate.h
29 zlib-1.2.11/inftrees.c
30 zlib-1.2.11/inftrees.h
31 zlib-1.2.11/make_vms.com
32 zlib-1.2.11/Makefile
33 zlib-1.2.11/Makefile.in
34 zlib-1.2.11/msdos/
35 zlib-1.2.11/nintendods/
36 zlib-1.2.11/old/
37 zlib-1.2.11/os400/
38 zlib-1.2.11/qnx/
39 zlib-1.2.11/README
40 zlib-1.2.11/test/
41 zlib-1.2.11/treebuild.xml
42 zlib-1.2.11/trees.c
43 zlib-1.2.11/trees.h
44 zlib-1.2.11/uncompr.c
45 zlib-1.2.11/watcom/
46 zlib-1.2.11/win32/
47 zlib-1.2.11/zconf.h
48 zlib-1.2.11/zconf.h.cmakein
49 zlib-1.2.11/zconf.h.in
50 zlib-1.2.11/zlib.3
51 zlib-1.2.11/zlib.3.pdf
52 zlib-1.2.11/zlib.h
53 zlib-1.2.11/zlib.map
54 zlib-1.2.11/zlib.pc.cmakein
55 zlib-1.2.11/zlib.pc.in
56 zlib-1.2.11/zlib2ansi
57 zlib-1.2.11/zutil.c
58 zlib-1.2.11/zutil.h
59 zlib-1.2.11/win32/DLL_FAQ.txt
60 zlib-1.2.11/win32/Makefile.bor
61 zlib-1.2.11/win32/Makefile.gcc
62 zlib-1.2.11/win32/Makefile.msc
63 zlib-1.2.11/win32/README-WIN32.txt
64 zlib-1.2.11/win32/VisualC.txt
65 zlib-1.2.11/win32/zlib.def
66 zlib-1.2.11/win32/zlib1.rc
67 zlib-1.2.11/watcom/watcom_f.mak
68 zlib-1.2.11/watcom/watcom_l.mak
69 zlib-1.2.11/test/example.c
70 zlib-1.2.11/test/infcover.c
71 zlib-1.2.11/test/minigzip.c
72 zlib-1.2.11/qnx/package.qpg
73 zlib-1.2.11/os400/bndsrc
74 zlib-1.2.11/os400/make.sh
75 zlib-1.2.11/os400/README400
76 zlib-1.2.11/os400/zlib.inc
77 zlib-1.2.11/old/descrip.mms
78 zlib-1.2.11/old/Makefile.emx
79 zlib-1.2.11/old/Makefile.riscos
80 zlib-1.2.11/old/os2/
81 zlib-1.2.11/old/README
82 zlib-1.2.11/old/visual-basic.txt
83 zlib-1.2.11/old/os2/Makefile.os2
84 zlib-1.2.11/old/os2/zlib.def
85 zlib-1.2.11/nintendods/Makefile
86 zlib-1.2.11/nintendods/README
87 zlib-1.2.11/msdos/Makefile.bor
88 zlib-1.2.11/msdos/Makefile.dj2
89 zlib-1.2.11/msdos/Makefile.emx
90 zlib-1.2.11/msdos/Makefile.msc
91 zlib-1.2.11/msdos/Makefile.tc
92 zlib-1.2.11/examples/enough.c
93 zlib-1.2.11/examples/fitblk.c
94 zlib-1.2.11/examples/gun.c
95 zlib-1.2.11/examples/gzappend.c
96 zlib-1.2.11/examples/gzjoin.c
97 zlib-1.2.11/examples/gzlog.c
98 zlib-1.2.11/examples/gzlog.h
99 zlib-1.2.11/examples/README.examples
100 zlib-1.2.11/examples/zlib_how.html
101 zlib-1.2.11/examples/zpipe.c
102 zlib-1.2.11/examples/zran.c
103 zlib-1.2.11/doc/algorithm.txt
104 zlib-1.2.11/doc/rfc1950.txt
105 zlib-1.2.11/doc/rfc1951.txt
106 zlib-1.2.11/doc/rfc1952.txt
107 zlib-1.2.11/doc/txtvsbin.txt
108 zlib-1.2.11/contrib/ada/
109 zlib-1.2.11/contrib/amd64/
110 zlib-1.2.11/contrib/asm686/
111 zlib-1.2.11/contrib/blast/
112 zlib-1.2.11/contrib/delphi/
113 zlib-1.2.11/contrib/dotzlib/
114 zlib-1.2.11/contrib/gcc_gvmat64/
115 zlib-1.2.11/contrib/infback9/
116 zlib-1.2.11/contrib/inflate86/
117 zlib-1.2.11/contrib/iostream/
118 zlib-1.2.11/contrib/iostream2/
119 zlib-1.2.11/contrib/iostream3/
120 zlib-1.2.11/contrib/masmx64/
121 zlib-1.2.11/contrib/masmx86/
122 zlib-1.2.11/contrib/minizip/
123 zlib-1.2.11/contrib/pascal/
124 zlib-1.2.11/contrib/puff/
125 zlib-1.2.11/contrib/README.contrib
126 zlib-1.2.11/contrib/testzlib/
127 zlib-1.2.11/contrib/untgz/
128 zlib-1.2.11/contrib/vstudio/
129 zlib-1.2.11/contrib/vstudio/readme.txt
130 zlib-1.2.11/contrib/vstudio/vc10/
131 zlib-1.2.11/contrib/vstudio/vc11/
132 zlib-1.2.11/contrib/vstudio/vc12/
133 zlib-1.2.11/contrib/vstudio/vc14/
134 zlib-1.2.11/contrib/vstudio/vc9/
135 zlib-1.2.11/contrib/vstudio/vc9/miniunz.vcproj
136 zlib-1.2.11/contrib/vstudio/vc9/minizip.vcproj
137 zlib-1.2.11/contrib/vstudio/vc9/testzlib.vcproj
138 zlib-1.2.11/contrib/vstudio/vc9/testzlibdll.vcproj
139 zlib-1.2.11/contrib/vstudio/vc9/zlib.rc
140 zlib-1.2.11/contrib/vstudio/vc9/zlibstat.vcproj
141 zlib-1.2.11/contrib/vstudio/vc9/zlibvc.def
142 zlib-1.2.11/contrib/vstudio/vc9/zlibvc.sln
143 zlib-1.2.11/contrib/vstudio/vc9/zlibvc.vcproj
144 zlib-1.2.11/contrib/vstudio/vc14/miniunz.vcxproj
145 zlib-1.2.11/contrib/vstudio/vc14/minizip.vcxproj
146 zlib-1.2.11/contrib/vstudio/vc14/testzlib.vcxproj
147 zlib-1.2.11/contrib/vstudio/vc14/testzlibdll.vcxproj
148 zlib-1.2.11/contrib/vstudio/vc14/zlib.rc
149 zlib-1.2.11/contrib/vstudio/vc14/zlibstat.vcxproj
150 zlib-1.2.11/contrib/vstudio/vc14/zlibvc.def
151 zlib-1.2.11/contrib/vstudio/vc14/zlibvc.sln
152 zlib-1.2.11/contrib/vstudio/vc14/zlibvc.vcxproj
153 zlib-1.2.11/contrib/vstudio/vc12/miniunz.vcxproj
154 zlib-1.2.11/contrib/vstudio/vc12/minizip.vcxproj
155 zlib-1.2.11/contrib/vstudio/vc12/testzlib.vcxproj
156 zlib-1.2.11/contrib/vstudio/vc12/testzlibdll.vcxproj
157 zlib-1.2.11/contrib/vstudio/vc12/zlib.rc
158 zlib-1.2.11/contrib/vstudio/vc12/zlibstat.vcxproj
159 zlib-1.2.11/contrib/vstudio/vc12/zlibvc.def
160 zlib-1.2.11/contrib/vstudio/vc12/zlibvc.sln
161 zlib-1.2.11/contrib/vstudio/vc12/zlibvc.vcxproj
162 zlib-1.2.11/contrib/vstudio/vc11/miniunz.vcxproj
163 zlib-1.2.11/contrib/vstudio/vc11/minizip.vcxproj
164 zlib-1.2.11/contrib/vstudio/vc11/testzlib.vcxproj
165 zlib-1.2.11/contrib/vstudio/vc11/testzlibdll.vcxproj
166 zlib-1.2.11/contrib/vstudio/vc11/zlib.rc
167 zlib-1.2.11/contrib/vstudio/vc11/zlibstat.vcxproj
168 zlib-1.2.11/contrib/vstudio/vc11/zlibvc.def
169 zlib-1.2.11/contrib/vstudio/vc11/zlibvc.sln
170 zlib-1.2.11/contrib/vstudio/vc11/zlibvc.vcxproj
171 zlib-1.2.11/contrib/vstudio/vc10/miniunz.vcxproj
172 zlib-1.2.11/contrib/vstudio/vc10/miniunz.vcxproj.filters
173 zlib-1.2.11/contrib/vstudio/vc10/minizip.vcxproj
174 zlib-1.2.11/contrib/vstudio/vc10/minizip.vcxproj.filters
175 zlib-1.2.11/contrib/vstudio/vc10/testzlib.vcxproj
176 zlib-1.2.11/contrib/vstudio/vc10/testzlib.vcxproj.filters
177 zlib-1.2.11/contrib/vstudio/vc10/testzlibdll.vcxproj
178 zlib-1.2.11/contrib/vstudio/vc10/testzlibdll.vcxproj.filters
179 zlib-1.2.11/contrib/vstudio/vc10/zlib.rc
180 zlib-1.2.11/contrib/vstudio/vc10/zlibstat.vcxproj
181 zlib-1.2.11/contrib/vstudio/vc10/zlibstat.vcxproj.filters
182 zlib-1.2.11/contrib/vstudio/vc10/zlibvc.def
183 zlib-1.2.11/contrib/vstudio/vc10/zlibvc.sln
184 zlib-1.2.11/contrib/vstudio/vc10/zlibvc.vcxproj
185 zlib-1.2.11/contrib/vstudio/vc10/zlibvc.vcxproj.filters
186 zlib-1.2.11/contrib/untgz/Makefile
187 zlib-1.2.11/contrib/untgz/Makefile.msc
188 zlib-1.2.11/contrib/untgz/untgz.c
189 zlib-1.2.11/contrib/testzlib/testzlib.c
190 zlib-1.2.11/contrib/testzlib/testzlib.txt
191 zlib-1.2.11/contrib/puff/Makefile
192 zlib-1.2.11/contrib/puff/puff.c
193 zlib-1.2.11/contrib/puff/puff.h
194 zlib-1.2.11/contrib/puff/pufftest.c
195 zlib-1.2.11/contrib/puff/README
196 zlib-1.2.11/contrib/puff/zeros.raw
197 zlib-1.2.11/contrib/pascal/example.pas
198 zlib-1.2.11/contrib/pascal/readme.txt
199 zlib-1.2.11/contrib/pascal/zlibd32.mak
200 zlib-1.2.11/contrib/pascal/zlibpas.pas
201 zlib-1.2.11/contrib/minizip/configure.ac
202 zlib-1.2.11/contrib/minizip/crypt.h
203 zlib-1.2.11/contrib/minizip/ioapi.c
204 zlib-1.2.11/contrib/minizip/ioapi.h
205 zlib-1.2.11/contrib/minizip/iowin32.c
206 zlib-1.2.11/contrib/minizip/iowin32.h
207 zlib-1.2.11/contrib/minizip/make_vms.com
208 zlib-1.2.11/contrib/minizip/Makefile
209 zlib-1.2.11/contrib/minizip/Makefile.am
210 zlib-1.2.11/contrib/minizip/miniunz.c
211 zlib-1.2.11/contrib/minizip/miniunzip.1
212 zlib-1.2.11/contrib/minizip/minizip.1
213 zlib-1.2.11/contrib/minizip/minizip.c
214 zlib-1.2.11/contrib/minizip/minizip.pc.in
215 zlib-1.2.11/contrib/minizip/MiniZip64_Changes.txt
216 zlib-1.2.11/contrib/minizip/MiniZip64_info.txt
217 zlib-1.2.11/contrib/minizip/mztools.c
218 zlib-1.2.11/contrib/minizip/mztools.h
219 zlib-1.2.11/contrib/minizip/unzip.c
220 zlib-1.2.11/contrib/minizip/unzip.h
221 zlib-1.2.11/contrib/minizip/zip.c
222 zlib-1.2.11/contrib/minizip/zip.h
223 zlib-1.2.11/contrib/masmx86/bld_ml32.bat
224 zlib-1.2.11/contrib/masmx86/inffas32.asm
225 zlib-1.2.11/contrib/masmx86/match686.asm
226 zlib-1.2.11/contrib/masmx86/readme.txt
227 zlib-1.2.11/contrib/masmx64/bld_ml64.bat
228 zlib-1.2.11/contrib/masmx64/gvmat64.asm
229 zlib-1.2.11/contrib/masmx64/inffas8664.c
230 zlib-1.2.11/contrib/masmx64/inffasx64.asm
231 zlib-1.2.11/contrib/masmx64/readme.txt
232 zlib-1.2.11/contrib/iostream3/README
233 zlib-1.2.11/contrib/iostream3/test.cc
234 zlib-1.2.11/contrib/iostream3/TODO
235 zlib-1.2.11/contrib/iostream3/zfstream.cc
236 zlib-1.2.11/contrib/iostream3/zfstream.h
237 zlib-1.2.11/contrib/iostream2/zstream.h
238 zlib-1.2.11/contrib/iostream2/zstream_test.cpp
239 zlib-1.2.11/contrib/iostream/test.cpp
240 zlib-1.2.11/contrib/iostream/zfstream.cpp
241 zlib-1.2.11/contrib/iostream/zfstream.h
242 zlib-1.2.11/contrib/inflate86/inffas86.c
243 zlib-1.2.11/contrib/inflate86/inffast.S
244 zlib-1.2.11/contrib/infback9/infback9.c
245 zlib-1.2.11/contrib/infback9/infback9.h
246 zlib-1.2.11/contrib/infback9/inffix9.h
247 zlib-1.2.11/contrib/infback9/inflate9.h
248 zlib-1.2.11/contrib/infback9/inftree9.c
249 zlib-1.2.11/contrib/infback9/inftree9.h
250 zlib-1.2.11/contrib/infback9/README
251 zlib-1.2.11/contrib/gcc_gvmat64/gvmat64.S
252 zlib-1.2.11/contrib/dotzlib/DotZLib/
253 zlib-1.2.11/contrib/dotzlib/DotZLib.build
254 zlib-1.2.11/contrib/dotzlib/DotZLib.chm
255 zlib-1.2.11/contrib/dotzlib/DotZLib.sln
256 zlib-1.2.11/contrib/dotzlib/LICENSE_1_0.txt
257 zlib-1.2.11/contrib/dotzlib/readme.txt
258 zlib-1.2.11/contrib/dotzlib/DotZLib/AssemblyInfo.cs
259 zlib-1.2.11/contrib/dotzlib/DotZLib/ChecksumImpl.cs
260 zlib-1.2.11/contrib/dotzlib/DotZLib/CircularBuffer.cs
261 zlib-1.2.11/contrib/dotzlib/DotZLib/CodecBase.cs
262 zlib-1.2.11/contrib/dotzlib/DotZLib/Deflater.cs
263 zlib-1.2.11/contrib/dotzlib/DotZLib/DotZLib.cs
264 zlib-1.2.11/contrib/dotzlib/DotZLib/DotZLib.csproj
265 zlib-1.2.11/contrib/dotzlib/DotZLib/GZipStream.cs
266 zlib-1.2.11/contrib/dotzlib/DotZLib/Inflater.cs
267 zlib-1.2.11/contrib/dotzlib/DotZLib/UnitTests.cs
268 zlib-1.2.11/contrib/delphi/readme.txt
269 zlib-1.2.11/contrib/delphi/ZLib.pas
270 zlib-1.2.11/contrib/delphi/ZLibConst.pas
271 zlib-1.2.11/contrib/delphi/zlibd32.mak
272 zlib-1.2.11/contrib/blast/blast.c
273 zlib-1.2.11/contrib/blast/blast.h
274 zlib-1.2.11/contrib/blast/Makefile
275 zlib-1.2.11/contrib/blast/README
276 zlib-1.2.11/contrib/blast/test.pk
277 zlib-1.2.11/contrib/blast/test.txt
278 zlib-1.2.11/contrib/asm686/match.S
279 zlib-1.2.11/contrib/asm686/README.686
280 zlib-1.2.11/contrib/amd64/amd64-match.S
281 zlib-1.2.11/contrib/ada/buffer_demo.adb
282 zlib-1.2.11/contrib/ada/mtest.adb
283 zlib-1.2.11/contrib/ada/read.adb
284 zlib-1.2.11/contrib/ada/readme.txt
285 zlib-1.2.11/contrib/ada/test.adb
286 zlib-1.2.11/contrib/ada/zlib-streams.adb
287 zlib-1.2.11/contrib/ada/zlib-streams.ads
288 zlib-1.2.11/contrib/ada/zlib-thin.adb
289 zlib-1.2.11/contrib/ada/zlib-thin.ads
290 zlib-1.2.11/contrib/ada/zlib.adb
291 zlib-1.2.11/contrib/ada/zlib.ads
292 zlib-1.2.11/contrib/ada/zlib.gpr
293 zlib-1.2.11/amiga/Makefile.pup
294 zlib-1.2.11/amiga/Makefile.sas

  ./configure 进行初始化配置

 1 ubuntu@node01:~/Nginx/zlib-1.2.11$ ./configure
2 Checking for gcc...
3 Checking for shared library support...
4 Building shared library libz.so.1.2.11 with gcc.
5 Checking for size_t... Yes.
6 Checking for off64_t... Yes.
7 Checking for fseeko... Yes.
8 Checking for strerror... Yes.
9 Checking for unistd.h... Yes.
10 Checking for stdarg.h... Yes.
11 Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
12 Checking for vsnprintf() in stdio.h... Yes.
13 Checking for return value of vsnprintf()... Yes.
14 Checking for attribute(visibility) support... Yes.

  make 编译

 1 ubuntu@node01:~/Nginx/zlib-1.2.11$ make
2 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -c -o example.o test/example.c
3 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o adler32.o adler32.c
4 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o crc32.o crc32.c
5 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o deflate.o deflate.c
6 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o infback.o infback.c
7 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inffast.o inffast.c
8 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inflate.o inflate.c
9 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inftrees.o inftrees.c
10 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o trees.o trees.c
11 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o zutil.o zutil.c
12 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o compress.o compress.c
13 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o uncompr.o uncompr.c
14 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzclose.o gzclose.c
15 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzlib.o gzlib.c
16 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzread.o gzread.c
17 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzwrite.o gzwrite.c
18 ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
19 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o example example.o -L. libz.a
20 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -c -o minigzip.o test/minigzip.c
21 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip minigzip.o -L. libz.a
22 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/adler32.o adler32.c
23 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/crc32.o crc32.c
24 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/deflate.o deflate.c
25 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/infback.o infback.c
26 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inffast.o inffast.c
27 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inflate.o inflate.c
28 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inftrees.o inftrees.c
29 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/trees.o trees.c
30 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/zutil.o zutil.c
31 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/compress.o compress.c
32 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/uncompr.o uncompr.c
33 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzclose.o gzclose.c
34 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzlib.o gzlib.c
35 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzread.o gzread.c
36 gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzwrite.o gzwrite.c
37 gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o libz.so.1.2.11 adler32.lo crc32.lo deflate.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo zutil.lo compress.lo uncompr.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo -lc
38 rm -f libz.so libz.so.1
39 ln -s libz.so.1.2.11 libz.so
40 ln -s libz.so.1.2.11 libz.so.1
41 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o examplesh example.o -L. libz.so.1.2.11
42 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzipsh minigzip.o -L. libz.so.1.2.11
43 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -D_FILE_OFFSET_BITS=64 -c -o example64.o test/example.c
44 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o example64 example64.o -L. libz.a
45 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -D_FILE_OFFSET_BITS=64 -c -o minigzip64.o test/minigzip.c
46 gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip64 minigzip64.o -L. libz.a

  make install 安装

 1 ubuntu@node01:~/Nginx/zlib-1.2.11$ sudo make install
2 rm -f /usr/local/lib/libz.a
3 cp libz.a /usr/local/lib
4 chmod 644 /usr/local/lib/libz.a
5 cp libz.so.1.2.11 /usr/local/lib
6 chmod 755 /usr/local/lib/libz.so.1.2.11
7 rm -f /usr/local/share/man/man3/zlib.3
8 cp zlib.3 /usr/local/share/man/man3
9 chmod 644 /usr/local/share/man/man3/zlib.3
10 rm -f /usr/local/lib/pkgconfig/zlib.pc
11 cp zlib.pc /usr/local/lib/pkgconfig
12 chmod 644 /usr/local/lib/pkgconfig/zlib.pc
13 rm -f /usr/local/include/zlib.h /usr/local/include/zconf.h
14 cp zlib.h zconf.h /usr/local/include
15 chmod 644 /usr/local/include/zlib.h /usr/local/include/zconf.h
16 ubuntu@node01:~/Nginx/zlib-1.2.11$

3)安装Nginx

  从官网页面下载Nginx,或者使用wget下载

1 wget https://nginx.org/download/nginx-1.16.1.tar.gz

  使用默认配置 ./configure 初始化(默认不包含某些模块,比如说Stream模块,要使用的话需要在这里添加with-xxx或add-moudle /path/to/xxx)

  1 ubuntu@node01:~/Nginx/nginx-1.16.1$ ./configure
2 checking for OS
3 + Linux 4.15.0-54-generic x86_64
4 checking for C compiler ... found
5 + using GNU C compiler
6 + gcc version: 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
7 checking for gcc -pipe switch ... found
8 checking for -Wl,-E switch ... found
9 checking for gcc builtin atomic operations ... found
10 checking for C99 variadic macros ... found
11 checking for gcc variadic macros ... found
12 checking for gcc builtin 64 bit byteswap ... found
13 checking for unistd.h ... found
14 checking for inttypes.h ... found
15 checking for limits.h ... found
16 checking for sys/filio.h ... not found
17 checking for sys/param.h ... found
18 checking for sys/mount.h ... found
19 checking for sys/statvfs.h ... found
20 checking for crypt.h ... found
21 checking for Linux specific features
22 checking for epoll ... found
23 checking for EPOLLRDHUP ... found
24 checking for EPOLLEXCLUSIVE ... found
25 checking for O_PATH ... found
26 checking for sendfile() ... found
27 checking for sendfile64() ... found
28 checking for sys/prctl.h ... found
29 checking for prctl(PR_SET_DUMPABLE) ... found
30 checking for prctl(PR_SET_KEEPCAPS) ... found
31 checking for capabilities ... found
32 checking for crypt_r() ... found
33 checking for sys/vfs.h ... found
34 checking for nobody group ... not found
35 checking for nogroup group ... found
36 checking for poll() ... found
37 checking for /dev/poll ... not found
38 checking for kqueue ... not found
39 checking for crypt() ... not found
40 checking for crypt() in libcrypt ... found
41 checking for F_READAHEAD ... not found
42 checking for posix_fadvise() ... found
43 checking for O_DIRECT ... found
44 checking for F_NOCACHE ... not found
45 checking for directio() ... not found
46 checking for statfs() ... found
47 checking for statvfs() ... found
48 checking for dlopen() ... not found
49 checking for dlopen() in libdl ... found
50 checking for sched_yield() ... found
51 checking for sched_setaffinity() ... found
52 checking for SO_SETFIB ... not found
53 checking for SO_REUSEPORT ... found
54 checking for SO_ACCEPTFILTER ... not found
55 checking for SO_BINDANY ... not found
56 checking for IP_TRANSPARENT ... found
57 checking for IP_BINDANY ... not found
58 checking for IP_BIND_ADDRESS_NO_PORT ... found
59 checking for IP_RECVDSTADDR ... not found
60 checking for IP_SENDSRCADDR ... not found
61 checking for IP_PKTINFO ... found
62 checking for IPV6_RECVPKTINFO ... found
63 checking for TCP_DEFER_ACCEPT ... found
64 checking for TCP_KEEPIDLE ... found
65 checking for TCP_FASTOPEN ... found
66 checking for TCP_INFO ... found
67 checking for accept4() ... found
68 checking for eventfd() ... found
69 checking for int size ... 4 bytes
70 checking for long size ... 8 bytes
71 checking for long long size ... 8 bytes
72 checking for void * size ... 8 bytes
73 checking for uint32_t ... found
74 checking for uint64_t ... found
75 checking for sig_atomic_t ... found
76 checking for sig_atomic_t size ... 4 bytes
77 checking for socklen_t ... found
78 checking for in_addr_t ... found
79 checking for in_port_t ... found
80 checking for rlim_t ... found
81 checking for uintptr_t ... uintptr_t found
82 checking for system byte ordering ... little endian
83 checking for size_t size ... 8 bytes
84 checking for off_t size ... 8 bytes
85 checking for time_t size ... 8 bytes
86 checking for AF_INET6 ... found
87 checking for setproctitle() ... not found
88 checking for pread() ... found
89 checking for pwrite() ... found
90 checking for pwritev() ... found
91 checking for sys_nerr ... found
92 checking for localtime_r() ... found
93 checking for clock_gettime(CLOCK_MONOTONIC) ... found
94 checking for posix_memalign() ... found
95 checking for memalign() ... found
96 checking for mmap(MAP_ANON|MAP_SHARED) ... found
97 checking for mmap("/dev/zero", MAP_SHARED) ... found
98 checking for System V shared memory ... found
99 checking for POSIX semaphores ... not found
100 checking for POSIX semaphores in libpthread ... found
101 checking for struct msghdr.msg_control ... found
102 checking for ioctl(FIONBIO) ... found
103 checking for struct tm.tm_gmtoff ... found
104 checking for struct dirent.d_namlen ... not found
105 checking for struct dirent.d_type ... found
106 checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
107 checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found
108 checking for openat(), fstatat() ... found
109 checking for getaddrinfo() ... found
110 checking for PCRE library ... found
111 checking for PCRE JIT support ... found
112 checking for zlib library ... found
113 creating objs/Makefile
114
115 Configuration summary
116 + using system PCRE library
117 + OpenSSL library is not used
118 + using system zlib library
119
120 nginx path prefix: "/usr/local/nginx"
121 nginx binary file: "/usr/local/nginx/sbin/nginx"
122 nginx modules path: "/usr/local/nginx/modules"
123 nginx configuration prefix: "/usr/local/nginx/conf"
124 nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
125 nginx pid file: "/usr/local/nginx/logs/nginx.pid"
126 nginx error log file: "/usr/local/nginx/logs/error.log"
127 nginx http access log file: "/usr/local/nginx/logs/access.log"
128 nginx http client request body temporary files: "client_body_temp"
129 nginx http proxy temporary files: "proxy_temp"
130 nginx http fastcgi temporary files: "fastcgi_temp"
131 nginx http uwsgi temporary files: "uwsgi_temp"
132 nginx http scgi temporary files: "scgi_temp"

  make 编译

  1 ubuntu@node01:~/Nginx/nginx-1.16.1$ make
2 make -f objs/Makefile
3 make[1]: Entering directory '/home/ubuntu/Nginx/nginx-1.16.1'
4 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
5 -o objs/src/core/nginx.o \
6 src/core/nginx.c
7 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
8 -o objs/src/core/ngx_log.o \
9 src/core/ngx_log.c
10 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
11 -o objs/src/core/ngx_palloc.o \
12 src/core/ngx_palloc.c
13 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
14 -o objs/src/core/ngx_array.o \
15 src/core/ngx_array.c
16 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
17 -o objs/src/core/ngx_list.o \
18 src/core/ngx_list.c
19 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
20 -o objs/src/core/ngx_hash.o \
21 src/core/ngx_hash.c
22 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
23 -o objs/src/core/ngx_buf.o \
24 src/core/ngx_buf.c
25 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
26 -o objs/src/core/ngx_queue.o \
27 src/core/ngx_queue.c
28 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
29 -o objs/src/core/ngx_output_chain.o \
30 src/core/ngx_output_chain.c
31 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
32 -o objs/src/core/ngx_string.o \
33 src/core/ngx_string.c
34 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
35 -o objs/src/core/ngx_parse.o \
36 src/core/ngx_parse.c
37 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
38 -o objs/src/core/ngx_parse_time.o \
39 src/core/ngx_parse_time.c
40 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
41 -o objs/src/core/ngx_inet.o \
42 src/core/ngx_inet.c
43 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
44 -o objs/src/core/ngx_file.o \
45 src/core/ngx_file.c
46 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
47 -o objs/src/core/ngx_crc32.o \
48 src/core/ngx_crc32.c
49 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
50 -o objs/src/core/ngx_murmurhash.o \
51 src/core/ngx_murmurhash.c
52 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
53 -o objs/src/core/ngx_md5.o \
54 src/core/ngx_md5.c
55 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
56 -o objs/src/core/ngx_sha1.o \
57 src/core/ngx_sha1.c
58 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
59 -o objs/src/core/ngx_rbtree.o \
60 src/core/ngx_rbtree.c
61 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
62 -o objs/src/core/ngx_radix_tree.o \
63 src/core/ngx_radix_tree.c
64 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
65 -o objs/src/core/ngx_slab.o \
66 src/core/ngx_slab.c
67 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
68 -o objs/src/core/ngx_times.o \
69 src/core/ngx_times.c
70 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
71 -o objs/src/core/ngx_shmtx.o \
72 src/core/ngx_shmtx.c
73 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
74 -o objs/src/core/ngx_connection.o \
75 src/core/ngx_connection.c
76 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
77 -o objs/src/core/ngx_cycle.o \
78 src/core/ngx_cycle.c
79 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
80 -o objs/src/core/ngx_spinlock.o \
81 src/core/ngx_spinlock.c
82 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
83 -o objs/src/core/ngx_rwlock.o \
84 src/core/ngx_rwlock.c
85 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
86 -o objs/src/core/ngx_cpuinfo.o \
87 src/core/ngx_cpuinfo.c
88 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
89 -o objs/src/core/ngx_conf_file.o \
90 src/core/ngx_conf_file.c
91 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
92 -o objs/src/core/ngx_module.o \
93 src/core/ngx_module.c
94 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
95 -o objs/src/core/ngx_resolver.o \
96 src/core/ngx_resolver.c
97 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
98 -o objs/src/core/ngx_open_file_cache.o \
99 src/core/ngx_open_file_cache.c
100 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
101 -o objs/src/core/ngx_crypt.o \
102 src/core/ngx_crypt.c
103 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
104 -o objs/src/core/ngx_proxy_protocol.o \
105 src/core/ngx_proxy_protocol.c
106 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
107 -o objs/src/core/ngx_syslog.o \
108 src/core/ngx_syslog.c
109 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
110 -o objs/src/event/ngx_event.o \
111 src/event/ngx_event.c
112 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
113 -o objs/src/event/ngx_event_timer.o \
114 src/event/ngx_event_timer.c
115 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
116 -o objs/src/event/ngx_event_posted.o \
117 src/event/ngx_event_posted.c
118 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
119 -o objs/src/event/ngx_event_accept.o \
120 src/event/ngx_event_accept.c
121 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
122 -o objs/src/event/ngx_event_udp.o \
123 src/event/ngx_event_udp.c
124 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
125 -o objs/src/event/ngx_event_connect.o \
126 src/event/ngx_event_connect.c
127 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
128 -o objs/src/event/ngx_event_pipe.o \
129 src/event/ngx_event_pipe.c
130 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
131 -o objs/src/os/unix/ngx_time.o \
132 src/os/unix/ngx_time.c
133 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
134 -o objs/src/os/unix/ngx_errno.o \
135 src/os/unix/ngx_errno.c
136 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
137 -o objs/src/os/unix/ngx_alloc.o \
138 src/os/unix/ngx_alloc.c
139 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
140 -o objs/src/os/unix/ngx_files.o \
141 src/os/unix/ngx_files.c
142 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
143 -o objs/src/os/unix/ngx_socket.o \
144 src/os/unix/ngx_socket.c
145 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
146 -o objs/src/os/unix/ngx_recv.o \
147 src/os/unix/ngx_recv.c
148 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
149 -o objs/src/os/unix/ngx_readv_chain.o \
150 src/os/unix/ngx_readv_chain.c
151 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
152 -o objs/src/os/unix/ngx_udp_recv.o \
153 src/os/unix/ngx_udp_recv.c
154 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
155 -o objs/src/os/unix/ngx_send.o \
156 src/os/unix/ngx_send.c
157 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
158 -o objs/src/os/unix/ngx_writev_chain.o \
159 src/os/unix/ngx_writev_chain.c
160 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
161 -o objs/src/os/unix/ngx_udp_send.o \
162 src/os/unix/ngx_udp_send.c
163 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
164 -o objs/src/os/unix/ngx_udp_sendmsg_chain.o \
165 src/os/unix/ngx_udp_sendmsg_chain.c
166 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
167 -o objs/src/os/unix/ngx_channel.o \
168 src/os/unix/ngx_channel.c
169 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
170 -o objs/src/os/unix/ngx_shmem.o \
171 src/os/unix/ngx_shmem.c
172 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
173 -o objs/src/os/unix/ngx_process.o \
174 src/os/unix/ngx_process.c
175 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
176 -o objs/src/os/unix/ngx_daemon.o \
177 src/os/unix/ngx_daemon.c
178 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
179 -o objs/src/os/unix/ngx_setaffinity.o \
180 src/os/unix/ngx_setaffinity.c
181 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
182 -o objs/src/os/unix/ngx_setproctitle.o \
183 src/os/unix/ngx_setproctitle.c
184 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
185 -o objs/src/os/unix/ngx_posix_init.o \
186 src/os/unix/ngx_posix_init.c
187 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
188 -o objs/src/os/unix/ngx_user.o \
189 src/os/unix/ngx_user.c
190 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
191 -o objs/src/os/unix/ngx_dlopen.o \
192 src/os/unix/ngx_dlopen.c
193 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
194 -o objs/src/os/unix/ngx_process_cycle.o \
195 src/os/unix/ngx_process_cycle.c
196 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
197 -o objs/src/os/unix/ngx_linux_init.o \
198 src/os/unix/ngx_linux_init.c
199 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
200 -o objs/src/event/modules/ngx_epoll_module.o \
201 src/event/modules/ngx_epoll_module.c
202 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
203 -o objs/src/os/unix/ngx_linux_sendfile_chain.o \
204 src/os/unix/ngx_linux_sendfile_chain.c
205 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
206 -o objs/src/core/ngx_regex.o \
207 src/core/ngx_regex.c
208 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
209 -o objs/src/http/ngx_http.o \
210 src/http/ngx_http.c
211 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
212 -o objs/src/http/ngx_http_core_module.o \
213 src/http/ngx_http_core_module.c
214 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
215 -o objs/src/http/ngx_http_special_response.o \
216 src/http/ngx_http_special_response.c
217 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
218 -o objs/src/http/ngx_http_request.o \
219 src/http/ngx_http_request.c
220 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
221 -o objs/src/http/ngx_http_parse.o \
222 src/http/ngx_http_parse.c
223 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
224 -o objs/src/http/modules/ngx_http_log_module.o \
225 src/http/modules/ngx_http_log_module.c
226 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
227 -o objs/src/http/ngx_http_request_body.o \
228 src/http/ngx_http_request_body.c
229 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
230 -o objs/src/http/ngx_http_variables.o \
231 src/http/ngx_http_variables.c
232 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
233 -o objs/src/http/ngx_http_script.o \
234 src/http/ngx_http_script.c
235 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
236 -o objs/src/http/ngx_http_upstream.o \
237 src/http/ngx_http_upstream.c
238 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
239 -o objs/src/http/ngx_http_upstream_round_robin.o \
240 src/http/ngx_http_upstream_round_robin.c
241 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
242 -o objs/src/http/ngx_http_file_cache.o \
243 src/http/ngx_http_file_cache.c
244 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
245 -o objs/src/http/ngx_http_write_filter_module.o \
246 src/http/ngx_http_write_filter_module.c
247 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
248 -o objs/src/http/ngx_http_header_filter_module.o \
249 src/http/ngx_http_header_filter_module.c
250 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
251 -o objs/src/http/modules/ngx_http_chunked_filter_module.o \
252 src/http/modules/ngx_http_chunked_filter_module.c
253 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
254 -o objs/src/http/modules/ngx_http_range_filter_module.o \
255 src/http/modules/ngx_http_range_filter_module.c
256 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
257 -o objs/src/http/modules/ngx_http_gzip_filter_module.o \
258 src/http/modules/ngx_http_gzip_filter_module.c
259 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
260 -o objs/src/http/ngx_http_postpone_filter_module.o \
261 src/http/ngx_http_postpone_filter_module.c
262 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
263 -o objs/src/http/modules/ngx_http_ssi_filter_module.o \
264 src/http/modules/ngx_http_ssi_filter_module.c
265 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
266 -o objs/src/http/modules/ngx_http_charset_filter_module.o \
267 src/http/modules/ngx_http_charset_filter_module.c
268 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
269 -o objs/src/http/modules/ngx_http_userid_filter_module.o \
270 src/http/modules/ngx_http_userid_filter_module.c
271 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
272 -o objs/src/http/modules/ngx_http_headers_filter_module.o \
273 src/http/modules/ngx_http_headers_filter_module.c
274 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
275 -o objs/src/http/ngx_http_copy_filter_module.o \
276 src/http/ngx_http_copy_filter_module.c
277 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
278 -o objs/src/http/modules/ngx_http_not_modified_filter_module.o \
279 src/http/modules/ngx_http_not_modified_filter_module.c
280 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
281 -o objs/src/http/modules/ngx_http_static_module.o \
282 src/http/modules/ngx_http_static_module.c
283 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
284 -o objs/src/http/modules/ngx_http_autoindex_module.o \
285 src/http/modules/ngx_http_autoindex_module.c
286 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
287 -o objs/src/http/modules/ngx_http_index_module.o \
288 src/http/modules/ngx_http_index_module.c
289 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
290 -o objs/src/http/modules/ngx_http_mirror_module.o \
291 src/http/modules/ngx_http_mirror_module.c
292 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
293 -o objs/src/http/modules/ngx_http_try_files_module.o \
294 src/http/modules/ngx_http_try_files_module.c
295 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
296 -o objs/src/http/modules/ngx_http_auth_basic_module.o \
297 src/http/modules/ngx_http_auth_basic_module.c
298 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
299 -o objs/src/http/modules/ngx_http_access_module.o \
300 src/http/modules/ngx_http_access_module.c
301 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
302 -o objs/src/http/modules/ngx_http_limit_conn_module.o \
303 src/http/modules/ngx_http_limit_conn_module.c
304 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
305 -o objs/src/http/modules/ngx_http_limit_req_module.o \
306 src/http/modules/ngx_http_limit_req_module.c
307 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
308 -o objs/src/http/modules/ngx_http_geo_module.o \
309 src/http/modules/ngx_http_geo_module.c
310 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
311 -o objs/src/http/modules/ngx_http_map_module.o \
312 src/http/modules/ngx_http_map_module.c
313 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
314 -o objs/src/http/modules/ngx_http_split_clients_module.o \
315 src/http/modules/ngx_http_split_clients_module.c
316 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
317 -o objs/src/http/modules/ngx_http_referer_module.o \
318 src/http/modules/ngx_http_referer_module.c
319 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
320 -o objs/src/http/modules/ngx_http_rewrite_module.o \
321 src/http/modules/ngx_http_rewrite_module.c
322 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
323 -o objs/src/http/modules/ngx_http_proxy_module.o \
324 src/http/modules/ngx_http_proxy_module.c
325 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
326 -o objs/src/http/modules/ngx_http_fastcgi_module.o \
327 src/http/modules/ngx_http_fastcgi_module.c
328 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
329 -o objs/src/http/modules/ngx_http_uwsgi_module.o \
330 src/http/modules/ngx_http_uwsgi_module.c
331 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
332 -o objs/src/http/modules/ngx_http_scgi_module.o \
333 src/http/modules/ngx_http_scgi_module.c
334 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
335 -o objs/src/http/modules/ngx_http_memcached_module.o \
336 src/http/modules/ngx_http_memcached_module.c
337 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
338 -o objs/src/http/modules/ngx_http_empty_gif_module.o \
339 src/http/modules/ngx_http_empty_gif_module.c
340 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
341 -o objs/src/http/modules/ngx_http_browser_module.o \
342 src/http/modules/ngx_http_browser_module.c
343 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
344 -o objs/src/http/modules/ngx_http_upstream_hash_module.o \
345 src/http/modules/ngx_http_upstream_hash_module.c
346 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
347 -o objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
348 src/http/modules/ngx_http_upstream_ip_hash_module.c
349 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
350 -o objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
351 src/http/modules/ngx_http_upstream_least_conn_module.c
352 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
353 -o objs/src/http/modules/ngx_http_upstream_random_module.o \
354 src/http/modules/ngx_http_upstream_random_module.c
355 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
356 -o objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
357 src/http/modules/ngx_http_upstream_keepalive_module.c
358 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
359 -o objs/src/http/modules/ngx_http_upstream_zone_module.o \
360 src/http/modules/ngx_http_upstream_zone_module.c
361 cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
362 -o objs/ngx_modules.o \
363 objs/ngx_modules.c
364 cc -o objs/nginx \
365 objs/src/core/nginx.o \
366 objs/src/core/ngx_log.o \
367 objs/src/core/ngx_palloc.o \
368 objs/src/core/ngx_array.o \
369 objs/src/core/ngx_list.o \
370 objs/src/core/ngx_hash.o \
371 objs/src/core/ngx_buf.o \
372 objs/src/core/ngx_queue.o \
373 objs/src/core/ngx_output_chain.o \
374 objs/src/core/ngx_string.o \
375 objs/src/core/ngx_parse.o \
376 objs/src/core/ngx_parse_time.o \
377 objs/src/core/ngx_inet.o \
378 objs/src/core/ngx_file.o \
379 objs/src/core/ngx_crc32.o \
380 objs/src/core/ngx_murmurhash.o \
381 objs/src/core/ngx_md5.o \
382 objs/src/core/ngx_sha1.o \
383 objs/src/core/ngx_rbtree.o \
384 objs/src/core/ngx_radix_tree.o \
385 objs/src/core/ngx_slab.o \
386 objs/src/core/ngx_times.o \
387 objs/src/core/ngx_shmtx.o \
388 objs/src/core/ngx_connection.o \
389 objs/src/core/ngx_cycle.o \
390 objs/src/core/ngx_spinlock.o \
391 objs/src/core/ngx_rwlock.o \
392 objs/src/core/ngx_cpuinfo.o \
393 objs/src/core/ngx_conf_file.o \
394 objs/src/core/ngx_module.o \
395 objs/src/core/ngx_resolver.o \
396 objs/src/core/ngx_open_file_cache.o \
397 objs/src/core/ngx_crypt.o \
398 objs/src/core/ngx_proxy_protocol.o \
399 objs/src/core/ngx_syslog.o \
400 objs/src/event/ngx_event.o \
401 objs/src/event/ngx_event_timer.o \
402 objs/src/event/ngx_event_posted.o \
403 objs/src/event/ngx_event_accept.o \
404 objs/src/event/ngx_event_udp.o \
405 objs/src/event/ngx_event_connect.o \
406 objs/src/event/ngx_event_pipe.o \
407 objs/src/os/unix/ngx_time.o \
408 objs/src/os/unix/ngx_errno.o \
409 objs/src/os/unix/ngx_alloc.o \
410 objs/src/os/unix/ngx_files.o \
411 objs/src/os/unix/ngx_socket.o \
412 objs/src/os/unix/ngx_recv.o \
413 objs/src/os/unix/ngx_readv_chain.o \
414 objs/src/os/unix/ngx_udp_recv.o \
415 objs/src/os/unix/ngx_send.o \
416 objs/src/os/unix/ngx_writev_chain.o \
417 objs/src/os/unix/ngx_udp_send.o \
418 objs/src/os/unix/ngx_udp_sendmsg_chain.o \
419 objs/src/os/unix/ngx_channel.o \
420 objs/src/os/unix/ngx_shmem.o \
421 objs/src/os/unix/ngx_process.o \
422 objs/src/os/unix/ngx_daemon.o \
423 objs/src/os/unix/ngx_setaffinity.o \
424 objs/src/os/unix/ngx_setproctitle.o \
425 objs/src/os/unix/ngx_posix_init.o \
426 objs/src/os/unix/ngx_user.o \
427 objs/src/os/unix/ngx_dlopen.o \
428 objs/src/os/unix/ngx_process_cycle.o \
429 objs/src/os/unix/ngx_linux_init.o \
430 objs/src/event/modules/ngx_epoll_module.o \
431 objs/src/os/unix/ngx_linux_sendfile_chain.o \
432 objs/src/core/ngx_regex.o \
433 objs/src/http/ngx_http.o \
434 objs/src/http/ngx_http_core_module.o \
435 objs/src/http/ngx_http_special_response.o \
436 objs/src/http/ngx_http_request.o \
437 objs/src/http/ngx_http_parse.o \
438 objs/src/http/modules/ngx_http_log_module.o \
439 objs/src/http/ngx_http_request_body.o \
440 objs/src/http/ngx_http_variables.o \
441 objs/src/http/ngx_http_script.o \
442 objs/src/http/ngx_http_upstream.o \
443 objs/src/http/ngx_http_upstream_round_robin.o \
444 objs/src/http/ngx_http_file_cache.o \
445 objs/src/http/ngx_http_write_filter_module.o \
446 objs/src/http/ngx_http_header_filter_module.o \
447 objs/src/http/modules/ngx_http_chunked_filter_module.o \
448 objs/src/http/modules/ngx_http_range_filter_module.o \
449 objs/src/http/modules/ngx_http_gzip_filter_module.o \
450 objs/src/http/ngx_http_postpone_filter_module.o \
451 objs/src/http/modules/ngx_http_ssi_filter_module.o \
452 objs/src/http/modules/ngx_http_charset_filter_module.o \
453 objs/src/http/modules/ngx_http_userid_filter_module.o \
454 objs/src/http/modules/ngx_http_headers_filter_module.o \
455 objs/src/http/ngx_http_copy_filter_module.o \
456 objs/src/http/modules/ngx_http_not_modified_filter_module.o \
457 objs/src/http/modules/ngx_http_static_module.o \
458 objs/src/http/modules/ngx_http_autoindex_module.o \
459 objs/src/http/modules/ngx_http_index_module.o \
460 objs/src/http/modules/ngx_http_mirror_module.o \
461 objs/src/http/modules/ngx_http_try_files_module.o \
462 objs/src/http/modules/ngx_http_auth_basic_module.o \
463 objs/src/http/modules/ngx_http_access_module.o \
464 objs/src/http/modules/ngx_http_limit_conn_module.o \
465 objs/src/http/modules/ngx_http_limit_req_module.o \
466 objs/src/http/modules/ngx_http_geo_module.o \
467 objs/src/http/modules/ngx_http_map_module.o \
468 objs/src/http/modules/ngx_http_split_clients_module.o \
469 objs/src/http/modules/ngx_http_referer_module.o \
470 objs/src/http/modules/ngx_http_rewrite_module.o \
471 objs/src/http/modules/ngx_http_proxy_module.o \
472 objs/src/http/modules/ngx_http_fastcgi_module.o \
473 objs/src/http/modules/ngx_http_uwsgi_module.o \
474 objs/src/http/modules/ngx_http_scgi_module.o \
475 objs/src/http/modules/ngx_http_memcached_module.o \
476 objs/src/http/modules/ngx_http_empty_gif_module.o \
477 objs/src/http/modules/ngx_http_browser_module.o \
478 objs/src/http/modules/ngx_http_upstream_hash_module.o \
479 objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
480 objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
481 objs/src/http/modules/ngx_http_upstream_random_module.o \
482 objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
483 objs/src/http/modules/ngx_http_upstream_zone_module.o \
484 objs/ngx_modules.o \
485 -ldl -lpthread -lcrypt -lpcre -lz \
486 -Wl,-E
487 sed -e "s|%%PREFIX%%|/usr/local/nginx|" \
488 -e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \
489 -e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \
490 -e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \
491 < man/nginx.8 > objs/nginx.8
492 make[1]: Leaving directory '/home/ubuntu/Nginx/nginx-1.16.1'

  make install 进行安装,注意:这里也需要root权限

  安装完后,Nginx默认安装在以下路径:

1 ubuntu@node01:~$ whereis nginx
2 nginx: /usr/local/nginx

4)Nginx的启动与停止

  启动命令(需要root权限),Nginx安装在 /usr/local/nginx 的目录中,不加“-c”参数会默认加载安装目录下conf子目录中nginx.conf文件

1 sudo /usr/local/nginx/sbin/nginx -c conf/nginx.conf

  停止命令有很多种,一般通过发信号给Nginx的主进程来停止Nginx

  可以通过ps命令来查找Nginx主进程号

1 ps -ef | grep nginx

  nginx配置文件中指定pid文件的存放路径,该文件的存放的就是Nginx当前的主进程号,没有指定的话默认在logs子目录下,可以省下ps寻找Nginx主进程的时间

1 kill -型号类型 `/usr/local/nginx/logs/nginx.pid`

  -信号类型有 -QUIT 从容停止、-TREM 或 -INT 快速停止,还有 -9 强制停止。

Nginx(三):Linux环境(Ubuntu)下Nginx的安装的更多相关文章

  1. linux与ubuntu下vsftp的安装使用

    vsftp工具是linux与类linux系统上常用的ftp传输工具,按百度上的说法,它的不同点与好处有九点,不明觉厉,有兴趣的可以深入验证: 一.它是一个安全.高速.稳定的FTP服务器: 二.它可以做 ...

  2. CAFFE(三):Ubuntu下Caffe框架安装(仅仅Caffe框架安装)

    步骤一. 从github上下载(克隆)安装包 1.1 在你要安装的路径下 clone 此处我直接安装到home目录,执行: ~$ cd ~ 2 :~$ git clone https://github ...

  3. ubuntu下nginx+php5的部署

    ubuntu下nginx+php5环境的部署和centos系统下的部署稍有不同,废话不多说,以下为操作记录:1)nginx安装root@ubuntutest01-KVM:~# sudo apt-get ...

  4. LNMP1.3一键安装Linux环境,配置Nginx运行ThinkPHP3.2

    LNMP1.3一键安装Linux环境,配置Nginx运行ThinkPHP3.2 你是否遇见过:安装LNMP1.3环境后,运行ThinkPHP 3.2,只能打开首页,不能访问控制器,报404错误. 按照 ...

  5. Ubuntu下Nginx启动、停止等常用命令

    本文详细介绍Ubuntu下Nginx启动.停止等常用命令.在开发过程中,我们会经常的修改Nginx的配置文件,每次修改配置文件都可以先测试下本次修改的配置文件是否正确,可以利用以下命令: servic ...

  6. Linux:Ubuntu下部署Web运行环境

    Linux:Ubuntu下部署Web运行环境 本次博客将会从三部分内容详述Ubuntu系统下Web运行环境的配置: 依次是:FTP服务器的搭建.MYSQL数据库的搭建.JDK的安装等. 参考文章如下: ...

  7. anaconda环境---ubuntu下重装

    anaconda环境---ubuntu下重装 @wp20190312 为何重装? 配置一个环境,意外发现conda命令不好用了,提示“找不到conda模块”,整个conda虚拟环境中的工程项目无法使用 ...

  8. AIR32F103(三) Linux环境基于标准外设库的项目模板

    目录 AIR32F103(一) 合宙AIR32F103CBT6开发板上手报告 AIR32F103(二) Linux环境和LibOpenCM3项目模板 AIR32F103(三) Linux环境基于标准外 ...

  9. Linux(Ubuntu)下MySQL的安装与配置

    转自:http://www.2cto.com/database/201401/273423.html 在Linux下MySQL的安装,我一直觉得挺麻烦的,因为之前安装时就是由于复杂的配置导致有点晕.今 ...

  10. 2010-01-20 12:09 ubuntu下minicom的安装及使用

    转http://hi.baidu.com/npugtawqdnbgqrq/item/106f805409b42813db163527 ubuntu下minicom的安装及使用 安装: sudo apt ...

随机推荐

  1. Sonarqube C# 配置资料整理

    c#配置方式: http://www.cnblogs.com/CoderAyu/p/9416376.html http://www.cnblogs.com/jingridong/p/6513884.h ...

  2. PTA 面向对象程序设计 6-2 逆序字符串

    6-2 逆序字符串 设计一个void类型的函数reverse_string,其功能是将一个给定的字符串逆序.例如,给定字符串为"hello",逆序后为"olleh&quo ...

  3. 【OI技巧】解决cin、cout因输入输出慢而TLE的问题

    语言本身没有问题!! 语言本身没有问题!! 语言本身没有问题!! C++本来的设计就是将输入输出流和C的标准输入输出挂钩在一起,这样就导致cin,cout输入输出前先要将内容放入缓冲区,最后再由cin ...

  4. linux命令(用户)

    一.常用命令 1.1 ls ls 命令是 linux 下最常用的命令,ls 命令就是 list 的缩写. ls 用来打印出当前目录的清单.如果 ls 指定其他目录,那么就会显示指定目录里的文件及文件夹 ...

  5. Loadrunner拼装唯一值方法

    由于Loadrunner函数有限性,唯一值需要几个函数的字符串进行拼装,可实现流水号.订单号等等数值的唯一性.具体可见下列方法: 方法一: char OraderID[15];srand(time{N ...

  6. Orchar Core 创建一个模块化的ASP.NET Core应用程序

    您将构建什么?您将构建一个模块化的ASP.NET Core MVC Web应用程序,类似于Orchard Core附带的示例"Hello World"应用程序.它包括一个Web应用 ...

  7. Java面向对象系列(9)- 方法重写

    为什么需要重写? 父类的功能,子类不一定需要,或者不一定满足 场景一 重写都是方法的重写,和属性无关 父类的引用指向了子类 用B类新建了A类的对象,把A赋值给了B,这时候B是A,A又继承了B类,向上转 ...

  8. Java基础系列(40)- Arrays类

    Arrays类 数据的工具类java.util.Arrays 由于数组对象本身并没有什么方法可以供我们调用,但API中提供了一个工具类Arrays供我们使用,从而可以对数据对象进行一些基本的操作 查看 ...

  9. Linux系列(41) - 监听命令Vmstart,Top(还需完善)

    一.简介 vmstat是Virtual Meomory Statistics(虚拟内存统计)的缩写,可对操作系统的虚拟内存.进程.CPU活动进行监控:属于sysstat包:它是对系统的整体情况进行统计 ...

  10. Python-对Pcap文件进行处理,获取指定TCP流

    通过对TCP/IP协议的学习,本人写了一个可以实现对PCAP文件中的IPV4下的TCP流提取,以及提取指定的TCP流,鉴于为了学习,没有采用第三方包解析pcap,而是对bytes流进行解析,其核心思想 ...