回答編集履歴
4
補足情報の追記
test
CHANGED
@@ -40,9 +40,11 @@
|
|
40
40
|
|
41
41
|
■(2017-03-09 22:45 修正):configure のオプションのダイエット■
|
42
42
|
|
43
|
-
|
43
|
+
■(2017-03-10 16:20 )修正■
|
44
|
-
|
44
|
+
|
45
|
+
|
46
|
+
|
45
|
-
### nginx-1.11.10 を openssl-1.1.0e でビルド・インストール
|
47
|
+
### 「nginx-1.11.10」 を 「openssl-1.1.0e」 でビルド・インストール
|
46
48
|
|
47
49
|
|
48
50
|
|
@@ -50,8 +52,6 @@
|
|
50
52
|
|
51
53
|
|
52
54
|
|
53
|
-
|
54
|
-
|
55
55
|
●nginx のコンパイルに必要なモノをダウンロード
|
56
56
|
|
57
57
|
|
@@ -108,17 +108,19 @@
|
|
108
108
|
|
109
109
|
|
110
110
|
|
111
|
-
●nginx のソースディレクトリで "configure"実行
|
111
|
+
●nginx のソースディレクトリで "configure"実行
|
112
|
-
|
112
|
+
|
113
|
+
|
114
|
+
|
113
|
-
|
115
|
+
- `/usr/local` 以下にインストール
|
114
|
-
|
115
|
-
|
116
|
-
|
116
|
+
|
117
|
-
|
117
|
+
- 今回、`configure` のオプションは(多分)最低限になっています。
|
118
|
-
|
118
|
+
|
119
|
-
|
119
|
+
- デフォルトの「モジュール使用」+「HTTPS対応」
|
120
|
+
|
120
|
-
|
121
|
+
- 他に必要な機能(モジュール)は、適宜、指定してください。
|
122
|
+
|
121
|
-
|
123
|
+
- 必要なパッケージはわかりません。
|
122
124
|
|
123
125
|
|
124
126
|
|
@@ -158,6 +160,8 @@
|
|
158
160
|
|
159
161
|
|
160
162
|
|
163
|
+
|
164
|
+
|
161
165
|
エラーが発生しなければ、以下のようなメッセージが表示されます。
|
162
166
|
|
163
167
|
|
@@ -260,4 +264,16 @@
|
|
260
264
|
|
261
265
|
|
262
266
|
|
263
|
-
|
267
|
+
- ばっさり、消してしまって良いのかは知りません。
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
---
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
※ 補足
|
276
|
+
|
277
|
+
- OS起動時に自動実行させる設定は、環境によって異なるので、ご自身でお調べください。
|
278
|
+
|
279
|
+
|
3
記載内容の修正
test
CHANGED
@@ -38,6 +38,8 @@
|
|
38
38
|
|
39
39
|
■(2017-03-09 19:10 追記)■
|
40
40
|
|
41
|
+
■(2017-03-09 22:45 修正):configure のオプションのダイエット■
|
42
|
+
|
41
43
|
|
42
44
|
|
43
45
|
### nginx-1.11.10 を openssl-1.1.0e でビルド・インストール
|
@@ -112,7 +114,9 @@
|
|
112
114
|
|
113
115
|
|
114
116
|
|
115
|
-
※ 今回、`configure`
|
117
|
+
※ 今回、`configure` のオプションは(多分)最低限になっています。
|
118
|
+
|
119
|
+
※ デフォルトのモジュール使用+HTTPS対応
|
116
120
|
|
117
121
|
※ そのほか、必要なパッケージはわかりません。
|
118
122
|
|
@@ -132,52 +136,10 @@
|
|
132
136
|
|
133
137
|
--group=nginx \
|
134
138
|
|
135
|
-
--with-threads \
|
136
|
-
|
137
|
-
--with-file-aio \
|
138
|
-
|
139
139
|
--with-http_ssl_module \
|
140
140
|
|
141
|
-
--with-http_v2_module \
|
142
|
-
|
143
|
-
--with-http_realip_module \
|
144
|
-
|
145
|
-
--with-http_addition_module \
|
146
|
-
|
147
|
-
--with-http_sub_module \
|
148
|
-
|
149
|
-
--with-http_dav_module \
|
150
|
-
|
151
|
-
--with-http_flv_module \
|
152
|
-
|
153
|
-
--with-http_mp4_module \
|
154
|
-
|
155
|
-
--with-http_gzip_static_module \
|
156
|
-
|
157
|
-
--with-http_gunzip_module \
|
158
|
-
|
159
|
-
--with-http_auth_request_module \
|
160
|
-
|
161
|
-
--with-http_random_index_module \
|
162
|
-
|
163
|
-
--with-http_secure_link_module \
|
164
|
-
|
165
|
-
--with-http_degradation_module \
|
166
|
-
|
167
|
-
--with-http_stub_status_module \
|
168
|
-
|
169
|
-
--with-http_image_filter_module \
|
170
|
-
|
171
|
-
--with-http_geoip_module \
|
172
|
-
|
173
|
-
--with-http_perl_module \
|
174
|
-
|
175
141
|
--with-stream \
|
176
142
|
|
177
|
-
--with-stream_ssl_module \
|
178
|
-
|
179
|
-
--with-perl=/usr/bin/perl \
|
180
|
-
|
181
143
|
--with-pcre-jit \
|
182
144
|
|
183
145
|
--with-pcre=./../pcre \
|
2
内容の修正
test
CHANGED
@@ -196,6 +196,60 @@
|
|
196
196
|
|
197
197
|
|
198
198
|
|
199
|
+
エラーが発生しなければ、以下のようなメッセージが表示されます。
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
```
|
204
|
+
|
205
|
+
Configuration summary
|
206
|
+
|
207
|
+
+ using threads
|
208
|
+
|
209
|
+
+ using PCRE library: ./../pcre
|
210
|
+
|
211
|
+
+ using OpenSSL library: ./../openssl
|
212
|
+
|
213
|
+
+ using zlib library: ./../zlib
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
nginx path prefix: "/usr/local"
|
218
|
+
|
219
|
+
nginx binary file: "/usr/local/sbin/nginx"
|
220
|
+
|
221
|
+
nginx modules path: "/usr/local/modules"
|
222
|
+
|
223
|
+
nginx configuration prefix: "/usr/local/conf"
|
224
|
+
|
225
|
+
nginx configuration file: "/usr/local/conf/nginx.conf"
|
226
|
+
|
227
|
+
nginx pid file: "/usr/local/logs/nginx.pid"
|
228
|
+
|
229
|
+
nginx error log file: "/usr/local/logs/error.log"
|
230
|
+
|
231
|
+
nginx http access log file: "/usr/local/logs/access.log"
|
232
|
+
|
233
|
+
nginx http client request body temporary files: "client_body_temp"
|
234
|
+
|
235
|
+
nginx http proxy temporary files: "proxy_temp"
|
236
|
+
|
237
|
+
nginx http fastcgi temporary files: "fastcgi_temp"
|
238
|
+
|
239
|
+
nginx http uwsgi temporary files: "uwsgi_temp"
|
240
|
+
|
241
|
+
nginx http scgi temporary files: "scgi_temp"
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
```
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
199
253
|
●"make" & "make install"実行
|
200
254
|
|
201
255
|
```
|
1
内容の追記
test
CHANGED
@@ -31,3 +31,217 @@
|
|
31
31
|
|
32
32
|
|
33
33
|

|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
---
|
38
|
+
|
39
|
+
■(2017-03-09 19:10 追記)■
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
### nginx-1.11.10 を openssl-1.1.0e でビルド・インストール
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
**ワタシが試しにビルドしたときのメモです**
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
●nginx のコンパイルに必要なモノをダウンロード
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
```
|
58
|
+
|
59
|
+
cd /usr/local/src
|
60
|
+
|
61
|
+
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.40.tar.bz2
|
62
|
+
|
63
|
+
wget http://zlib.net/zlib-1.2.11.tar.xz
|
64
|
+
|
65
|
+
wget https://www.openssl.org/source/openssl-1.1.0e.tar.gz
|
66
|
+
|
67
|
+
wget https://nginx.org/download/nginx-1.11.10.tar.gz
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
●ダウンロードしたファイルを展開
|
74
|
+
|
75
|
+
```
|
76
|
+
|
77
|
+
cd /usr/local/src
|
78
|
+
|
79
|
+
tar zxvf openssl-1.1.0e.tar.gz
|
80
|
+
|
81
|
+
tar jxvf pcre-8.40.tar.bz2
|
82
|
+
|
83
|
+
tar Jxvf zlib-1.2.11.tar.xz
|
84
|
+
|
85
|
+
tar zxvf nginx-1.11.10.tar.gz
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
●意味ないけど、シンボリック・リンク
|
92
|
+
|
93
|
+
```
|
94
|
+
|
95
|
+
cd /usr/local/src
|
96
|
+
|
97
|
+
ln -s ./openssl-1.0.2k openssl
|
98
|
+
|
99
|
+
ln -s ./pcre-8.40 pcre
|
100
|
+
|
101
|
+
ln -s ./zlib-1.2.11 zlib
|
102
|
+
|
103
|
+
ln -s ./nginx-1.11.10 nginx
|
104
|
+
|
105
|
+
```
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
●nginx のソースディレクトリで "configure"実行 (オプションは好み)
|
110
|
+
|
111
|
+
( `/usr/local` 以下にインストール)
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
※ 今回、`configure` でのオプションは、適当にピックアップしました。
|
116
|
+
|
117
|
+
※ そのほか、必要なパッケージはわかりません。
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
```
|
122
|
+
|
123
|
+
cd /usr/local/src/nginx
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
./configure --prefix=/usr/local \
|
128
|
+
|
129
|
+
--with-cc=gcc \
|
130
|
+
|
131
|
+
--user=nginx \
|
132
|
+
|
133
|
+
--group=nginx \
|
134
|
+
|
135
|
+
--with-threads \
|
136
|
+
|
137
|
+
--with-file-aio \
|
138
|
+
|
139
|
+
--with-http_ssl_module \
|
140
|
+
|
141
|
+
--with-http_v2_module \
|
142
|
+
|
143
|
+
--with-http_realip_module \
|
144
|
+
|
145
|
+
--with-http_addition_module \
|
146
|
+
|
147
|
+
--with-http_sub_module \
|
148
|
+
|
149
|
+
--with-http_dav_module \
|
150
|
+
|
151
|
+
--with-http_flv_module \
|
152
|
+
|
153
|
+
--with-http_mp4_module \
|
154
|
+
|
155
|
+
--with-http_gzip_static_module \
|
156
|
+
|
157
|
+
--with-http_gunzip_module \
|
158
|
+
|
159
|
+
--with-http_auth_request_module \
|
160
|
+
|
161
|
+
--with-http_random_index_module \
|
162
|
+
|
163
|
+
--with-http_secure_link_module \
|
164
|
+
|
165
|
+
--with-http_degradation_module \
|
166
|
+
|
167
|
+
--with-http_stub_status_module \
|
168
|
+
|
169
|
+
--with-http_image_filter_module \
|
170
|
+
|
171
|
+
--with-http_geoip_module \
|
172
|
+
|
173
|
+
--with-http_perl_module \
|
174
|
+
|
175
|
+
--with-stream \
|
176
|
+
|
177
|
+
--with-stream_ssl_module \
|
178
|
+
|
179
|
+
--with-perl=/usr/bin/perl \
|
180
|
+
|
181
|
+
--with-pcre-jit \
|
182
|
+
|
183
|
+
--with-pcre=./../pcre \
|
184
|
+
|
185
|
+
--with-zlib=./../zlib \
|
186
|
+
|
187
|
+
--with-openssl=./../openssl \
|
188
|
+
|
189
|
+
--with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' \
|
190
|
+
|
191
|
+
--with-ld-opt='-Wl,-z,relro -Wl,-z,now '
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
```
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
●"make" & "make install"実行
|
200
|
+
|
201
|
+
```
|
202
|
+
|
203
|
+
make
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
make install
|
208
|
+
|
209
|
+
```
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
●バージョン確認
|
214
|
+
|
215
|
+
```
|
216
|
+
|
217
|
+
/usr/local/sbin/nginx -V
|
218
|
+
|
219
|
+
nginx version: nginx/1.11.10
|
220
|
+
|
221
|
+
built by gcc X.Y.Z
|
222
|
+
|
223
|
+
built with OpenSSL 1.1.0e 16 Feb 2017
|
224
|
+
|
225
|
+
TLS SNI support enabled
|
226
|
+
|
227
|
+
~~~
|
228
|
+
|
229
|
+
```
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
●後始末
|
234
|
+
|
235
|
+
```
|
236
|
+
|
237
|
+
cd /usr/local/src
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
rm -rf openssl-1.0.2k openssl pcre-8.40 pcre zlib-1.2.11 zlib nginx-1.11.10 nginx
|
242
|
+
|
243
|
+
```
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|