{"id":2606,"date":"2020-03-15T21:15:48","date_gmt":"2020-03-15T12:15:48","guid":{"rendered":"https:\/\/dona-co.art\/?p=2606"},"modified":"2021-04-25T16:27:00","modified_gmt":"2021-04-25T07:27:00","slug":"2606","status":"publish","type":"post","link":"https:\/\/dona-co.art\/?p=2606","title":{"rendered":"HTTP\/2 TLSv3 \u306a Nginx \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(Ubuntu16.04\/18.04)"},"content":{"rendered":"<p>nginx-build \u3092\u4f7f\u3046\u3053\u3068\u3067\u30c8\u30e9\u30d6\u30eb\u7121\u304f\u30d3\u30eb\u30c9\u30fb\u7ba1\u7406\u304c\u51fa\u6765\u307e\u3059\u3002<br \/>\n\u51c4\u304f\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002<\/p>\n<p><strong>Ubuntu 16.04\u306b Go \u3092\u5165\u308c\u308b<\/strong><\/p>\n<pre style=\"margin: 0; padding: 0;\"><code>sudo apt update\nsudo apt upgrade -y\ncd \/tmp\nwget https:\/\/dl.google.com\/go\/go1.11.linux-amd64.tar.gz\nsudo tar -xvf go1.11.linux-amd64.tar.gz\nsudo mv go \/usr\/local\nexport GOROOT=\/usr\/local\/go\nexport GOPATH=$HOME\/go\nexport PATH=$GOPATH\/bin:$GOROOT\/bin:$PATH\ngo version<\/code><\/pre>\n<p><strong>nginx-build \u306e\u5c0e\u5165<\/strong><\/p>\n<pre style=\"margin: 0; padding: 0;\"><code>go get -u github.com\/cubicdaiya\/nginx-build\nnginx-build -version<\/code><\/pre>\n<p><strong>Nginx \u306e\u30d3\u30eb\u30c9<\/strong><br \/>\n\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a18\u8ff0\u3057\u305f\u30b7\u30a7\u30eb\u3092\u7528\u610f\u3057\u3066\u3001\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"margin: 0; padding: 0;\"><code>sudo mkdir work\nsudo chown usrname:usrname -R work\nnginx-build -d work -c .\/install.sh -clear<\/code><\/pre>\n<p><strong>Nginx \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n<pre style=\"margin: 0; padding: 0;\"><code>cd work\/nginx\/1.17.9\/nginx-1.17.9\nsudo service nginx stop\nsudo make install\nsudo service nginx start\nnginx -V<\/code><\/pre>\n<p><strong>\u30b7\u30a7\u30eb<\/strong><br \/>\n\u524d\u8ff0\u306e\u30b7\u30a7\u30eb\u306f\u3053\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u8a18\u8ff0\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n.\/install.sh<\/p>\n<pre style=\"margin: 0; padding: 0;\"><code>#!\/bin\/sh\n.\/configure \\\n--prefix=\/etc\/nginx \\\n--sbin-path=\/usr\/sbin\/nginx \\\n--modules-path=\/usr\/lib\/nginx\/modules \\\n--conf-path=\/etc\/nginx\/nginx.conf \\\n--error-log-path=\/var\/log\/nginx\/error.log \\\n--http-log-path=\/var\/log\/nginx\/access.log \\\n--pid-path=\/var\/run\/nginx.pid \\\n--lock-path=\/var\/run\/nginx.lock \\\n--http-client-body-temp-path=\/var\/cache\/nginx\/client_temp \\\n--http-proxy-temp-path=\/var\/cache\/nginx\/proxy_temp \\\n--http-fastcgi-temp-path=\/var\/cache\/nginx\/fastcgi_temp \\\n--http-uwsgi-temp-path=\/var\/cache\/nginx\/uwsgi_temp \\\n--http-scgi-temp-path=\/var\/cache\/nginx\/scgi_temp \\\n--user=nginx \\\n--group=nginx \\\n--with-openssl=\/usr\/local\/src\/openssl-1.1.1d \\\n--with-openssl-opt=enable-tls1_3 \\\n--with-compat \\\n--with-file-aio \\\n--with-threads \\\n--with-pcre \\\n--with-pcre-jit \\\n--with-http_addition_module \\\n--with-http_auth_request_module \\\n--with-http_dav_module \\\n--with-http_flv_module \\\n--with-http_gunzip_module \\\n--with-http_gzip_static_module \\\n--with-http_mp4_module \\\n--with-http_random_index_module \\\n--with-http_realip_module \\\n--with-http_secure_link_module \\\n--with-http_slice_module \\\n--with-http_ssl_module \\\n--with-http_stub_status_module \\\n--with-http_sub_module \\\n--with-http_v2_module \\\n--with-mail \\\n--with-mail_ssl_module \\\n--with-stream \\\n--with-stream_realip_module \\\n--with-stream_ssl_module \\\n--with-stream_ssl_preread_module \\\n--with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC'  --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie' #<\/code><\/pre>\n<p><strong>\u53c2\u8003<\/strong><br \/>\n<a href=\"https:\/\/www.slideshare.net\/ohashiyuta\/gogopath\" target=\"_blank\" rel=\"noopener noreferrer\">\u4eca\u65e5\u304b\u3089Go\u3092\u306f\u3057\u3099\u3081\u308b\u4eba\u306b\u4f1d\u3048\u305f\u3044$GOPATH\u3066\u3099\u306f\u307e\u3063\u305f\u8a71<\/a><br \/>\n<a href=\"https:\/\/shomatan.hatenablog.com\/entry\/2018\/10\/31\/220719\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu 16.04\u306b golang 1.11 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/a><br \/>\n<a href=\"https:\/\/qiita.com\/cubicdaiya\/items\/a0411c190f043a85ad2f\" target=\"_blank\" rel=\"noopener noreferrer\">nginx-build\u3067nginx\u3092\u30d3\u30eb\u30c9\u3057\u3088\u3046<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>nginx-build \u3092\u4f7f\u3046\u3053\u3068\u3067\u30c8\u30e9\u30d6\u30eb\u7121\u304f\u30d3\u30eb\u30c9\u30fb\u7ba1\u7406\u304c\u51fa\u6765\u307e\u3059\u3002 \u51c4\u304f\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002 Ubuntu 16.04\u306b Go \u3092\u5165\u308c\u308b sudo apt update sudo apt upgrade -y cd \/t [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-2606","post","type-post","status-publish","format-standard","hentry","category-memo"],"_links":{"self":[{"href":"https:\/\/dona-co.art\/index.php?rest_route=\/wp\/v2\/posts\/2606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dona-co.art\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dona-co.art\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dona-co.art\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dona-co.art\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2606"}],"version-history":[{"count":27,"href":"https:\/\/dona-co.art\/index.php?rest_route=\/wp\/v2\/posts\/2606\/revisions"}],"predecessor-version":[{"id":3220,"href":"https:\/\/dona-co.art\/index.php?rest_route=\/wp\/v2\/posts\/2606\/revisions\/3220"}],"wp:attachment":[{"href":"https:\/\/dona-co.art\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dona-co.art\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dona-co.art\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}