回答編集履歴
4
補足情報の追記
answer
CHANGED
@@ -19,12 +19,12 @@
|
|
19
19
|
---
|
20
20
|
■(2017-03-09 19:10 追記)■
|
21
21
|
■(2017-03-09 22:45 修正):configure のオプションのダイエット■
|
22
|
+
■(2017-03-10 16:20 )修正■
|
22
23
|
|
23
|
-
### nginx-1.11.10 を openssl-1.1.0e でビルド・インストール
|
24
|
+
### 「nginx-1.11.10」 を 「openssl-1.1.0e」 でビルド・インストール
|
24
25
|
|
25
26
|
**ワタシが試しにビルドしたときのメモです**
|
26
27
|
|
27
|
-
|
28
28
|
●nginx のコンパイルに必要なモノをダウンロード
|
29
29
|
|
30
30
|
```
|
@@ -53,12 +53,13 @@
|
|
53
53
|
ln -s ./nginx-1.11.10 nginx
|
54
54
|
```
|
55
55
|
|
56
|
-
●nginx のソースディレクトリで "configure"実行
|
56
|
+
●nginx のソースディレクトリで "configure"実行
|
57
|
-
( `/usr/local` 以下にインストール)
|
58
57
|
|
58
|
+
- `/usr/local` 以下にインストール
|
59
|
-
|
59
|
+
- 今回、`configure` のオプションは(多分)最低限になっています。
|
60
|
-
|
60
|
+
- デフォルトの「モジュール使用」+「HTTPS対応」
|
61
|
+
- 他に必要な機能(モジュール)は、適宜、指定してください。
|
61
|
-
|
62
|
+
- 必要なパッケージはわかりません。
|
62
63
|
|
63
64
|
```
|
64
65
|
cd /usr/local/src/nginx
|
@@ -78,6 +79,7 @@
|
|
78
79
|
|
79
80
|
```
|
80
81
|
|
82
|
+
|
81
83
|
エラーが発生しなければ、以下のようなメッセージが表示されます。
|
82
84
|
|
83
85
|
```
|
@@ -129,3 +131,9 @@
|
|
129
131
|
rm -rf openssl-1.0.2k openssl pcre-8.40 pcre zlib-1.2.11 zlib nginx-1.11.10 nginx
|
130
132
|
```
|
131
133
|
|
134
|
+
- ばっさり、消してしまって良いのかは知りません。
|
135
|
+
|
136
|
+
---
|
137
|
+
|
138
|
+
※ 補足
|
139
|
+
- OS起動時に自動実行させる設定は、環境によって異なるので、ご自身でお調べください。
|
3
記載内容の修正
answer
CHANGED
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
---
|
20
20
|
■(2017-03-09 19:10 追記)■
|
21
|
+
■(2017-03-09 22:45 修正):configure のオプションのダイエット■
|
21
22
|
|
22
23
|
### nginx-1.11.10 を openssl-1.1.0e でビルド・インストール
|
23
24
|
|
@@ -55,7 +56,8 @@
|
|
55
56
|
●nginx のソースディレクトリで "configure"実行 (オプションは好み)
|
56
57
|
( `/usr/local` 以下にインストール)
|
57
58
|
|
58
|
-
※ 今回、`configure`
|
59
|
+
※ 今回、`configure` のオプションは(多分)最低限になっています。
|
60
|
+
※ デフォルトのモジュール使用+HTTPS対応
|
59
61
|
※ そのほか、必要なパッケージはわかりません。
|
60
62
|
|
61
63
|
```
|
@@ -65,29 +67,8 @@
|
|
65
67
|
--with-cc=gcc \
|
66
68
|
--user=nginx \
|
67
69
|
--group=nginx \
|
68
|
-
--with-threads \
|
69
|
-
--with-file-aio \
|
70
70
|
--with-http_ssl_module \
|
71
|
-
--with-http_v2_module \
|
72
|
-
--with-http_realip_module \
|
73
|
-
--with-http_addition_module \
|
74
|
-
--with-http_sub_module \
|
75
|
-
--with-http_dav_module \
|
76
|
-
--with-http_flv_module \
|
77
|
-
--with-http_mp4_module \
|
78
|
-
--with-http_gzip_static_module \
|
79
|
-
--with-http_gunzip_module \
|
80
|
-
--with-http_auth_request_module \
|
81
|
-
--with-http_random_index_module \
|
82
|
-
--with-http_secure_link_module \
|
83
|
-
--with-http_degradation_module \
|
84
|
-
--with-http_stub_status_module \
|
85
|
-
--with-http_image_filter_module \
|
86
|
-
--with-http_geoip_module \
|
87
|
-
--with-http_perl_module \
|
88
71
|
--with-stream \
|
89
|
-
--with-stream_ssl_module \
|
90
|
-
--with-perl=/usr/bin/perl \
|
91
72
|
--with-pcre-jit \
|
92
73
|
--with-pcre=./../pcre \
|
93
74
|
--with-zlib=./../zlib \
|
2
内容の修正
answer
CHANGED
@@ -97,6 +97,33 @@
|
|
97
97
|
|
98
98
|
```
|
99
99
|
|
100
|
+
エラーが発生しなければ、以下のようなメッセージが表示されます。
|
101
|
+
|
102
|
+
```
|
103
|
+
Configuration summary
|
104
|
+
+ using threads
|
105
|
+
+ using PCRE library: ./../pcre
|
106
|
+
+ using OpenSSL library: ./../openssl
|
107
|
+
+ using zlib library: ./../zlib
|
108
|
+
|
109
|
+
nginx path prefix: "/usr/local"
|
110
|
+
nginx binary file: "/usr/local/sbin/nginx"
|
111
|
+
nginx modules path: "/usr/local/modules"
|
112
|
+
nginx configuration prefix: "/usr/local/conf"
|
113
|
+
nginx configuration file: "/usr/local/conf/nginx.conf"
|
114
|
+
nginx pid file: "/usr/local/logs/nginx.pid"
|
115
|
+
nginx error log file: "/usr/local/logs/error.log"
|
116
|
+
nginx http access log file: "/usr/local/logs/access.log"
|
117
|
+
nginx http client request body temporary files: "client_body_temp"
|
118
|
+
nginx http proxy temporary files: "proxy_temp"
|
119
|
+
nginx http fastcgi temporary files: "fastcgi_temp"
|
120
|
+
nginx http uwsgi temporary files: "uwsgi_temp"
|
121
|
+
nginx http scgi temporary files: "scgi_temp"
|
122
|
+
|
123
|
+
```
|
124
|
+
|
125
|
+
|
126
|
+
|
100
127
|
●"make" & "make install"実行
|
101
128
|
```
|
102
129
|
make
|
1
内容の追記
answer
CHANGED
@@ -14,4 +14,110 @@
|
|
14
14
|
(**自己責任**であれば)OpenSSL を併用することは可能だと思います。
|
15
15
|
※ 「OpenSSL 1.1.0」で**動作しない**可能性もありますが。。。
|
16
16
|
|
17
|
-

|
17
|
+

|
18
|
+
|
19
|
+
---
|
20
|
+
■(2017-03-09 19:10 追記)■
|
21
|
+
|
22
|
+
### nginx-1.11.10 を openssl-1.1.0e でビルド・インストール
|
23
|
+
|
24
|
+
**ワタシが試しにビルドしたときのメモです**
|
25
|
+
|
26
|
+
|
27
|
+
●nginx のコンパイルに必要なモノをダウンロード
|
28
|
+
|
29
|
+
```
|
30
|
+
cd /usr/local/src
|
31
|
+
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.40.tar.bz2
|
32
|
+
wget http://zlib.net/zlib-1.2.11.tar.xz
|
33
|
+
wget https://www.openssl.org/source/openssl-1.1.0e.tar.gz
|
34
|
+
wget https://nginx.org/download/nginx-1.11.10.tar.gz
|
35
|
+
```
|
36
|
+
|
37
|
+
●ダウンロードしたファイルを展開
|
38
|
+
```
|
39
|
+
cd /usr/local/src
|
40
|
+
tar zxvf openssl-1.1.0e.tar.gz
|
41
|
+
tar jxvf pcre-8.40.tar.bz2
|
42
|
+
tar Jxvf zlib-1.2.11.tar.xz
|
43
|
+
tar zxvf nginx-1.11.10.tar.gz
|
44
|
+
```
|
45
|
+
|
46
|
+
●意味ないけど、シンボリック・リンク
|
47
|
+
```
|
48
|
+
cd /usr/local/src
|
49
|
+
ln -s ./openssl-1.0.2k openssl
|
50
|
+
ln -s ./pcre-8.40 pcre
|
51
|
+
ln -s ./zlib-1.2.11 zlib
|
52
|
+
ln -s ./nginx-1.11.10 nginx
|
53
|
+
```
|
54
|
+
|
55
|
+
●nginx のソースディレクトリで "configure"実行 (オプションは好み)
|
56
|
+
( `/usr/local` 以下にインストール)
|
57
|
+
|
58
|
+
※ 今回、`configure` でのオプションは、適当にピックアップしました。
|
59
|
+
※ そのほか、必要なパッケージはわかりません。
|
60
|
+
|
61
|
+
```
|
62
|
+
cd /usr/local/src/nginx
|
63
|
+
|
64
|
+
./configure --prefix=/usr/local \
|
65
|
+
--with-cc=gcc \
|
66
|
+
--user=nginx \
|
67
|
+
--group=nginx \
|
68
|
+
--with-threads \
|
69
|
+
--with-file-aio \
|
70
|
+
--with-http_ssl_module \
|
71
|
+
--with-http_v2_module \
|
72
|
+
--with-http_realip_module \
|
73
|
+
--with-http_addition_module \
|
74
|
+
--with-http_sub_module \
|
75
|
+
--with-http_dav_module \
|
76
|
+
--with-http_flv_module \
|
77
|
+
--with-http_mp4_module \
|
78
|
+
--with-http_gzip_static_module \
|
79
|
+
--with-http_gunzip_module \
|
80
|
+
--with-http_auth_request_module \
|
81
|
+
--with-http_random_index_module \
|
82
|
+
--with-http_secure_link_module \
|
83
|
+
--with-http_degradation_module \
|
84
|
+
--with-http_stub_status_module \
|
85
|
+
--with-http_image_filter_module \
|
86
|
+
--with-http_geoip_module \
|
87
|
+
--with-http_perl_module \
|
88
|
+
--with-stream \
|
89
|
+
--with-stream_ssl_module \
|
90
|
+
--with-perl=/usr/bin/perl \
|
91
|
+
--with-pcre-jit \
|
92
|
+
--with-pcre=./../pcre \
|
93
|
+
--with-zlib=./../zlib \
|
94
|
+
--with-openssl=./../openssl \
|
95
|
+
--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' \
|
96
|
+
--with-ld-opt='-Wl,-z,relro -Wl,-z,now '
|
97
|
+
|
98
|
+
```
|
99
|
+
|
100
|
+
●"make" & "make install"実行
|
101
|
+
```
|
102
|
+
make
|
103
|
+
|
104
|
+
make install
|
105
|
+
```
|
106
|
+
|
107
|
+
●バージョン確認
|
108
|
+
```
|
109
|
+
/usr/local/sbin/nginx -V
|
110
|
+
nginx version: nginx/1.11.10
|
111
|
+
built by gcc X.Y.Z
|
112
|
+
built with OpenSSL 1.1.0e 16 Feb 2017
|
113
|
+
TLS SNI support enabled
|
114
|
+
~~~
|
115
|
+
```
|
116
|
+
|
117
|
+
●後始末
|
118
|
+
```
|
119
|
+
cd /usr/local/src
|
120
|
+
|
121
|
+
rm -rf openssl-1.0.2k openssl pcre-8.40 pcre zlib-1.2.11 zlib nginx-1.11.10 nginx
|
122
|
+
```
|
123
|
+
|