| 23行目: | 23行目: | ||
sudo zypper install kernel-source kernel-devel # AIOを使用する場合 | sudo zypper install kernel-source kernel-devel # AIOを使用する場合 | ||
<br> | <br> | ||
[https://www.openssl.org/source/ OpenSSLの公式Webサイト]にアクセスして、OpenSSL(1.X.Y)のソースコードをダウンロードする。<br> | 必要ならば、[https://www.openssl.org/source/ OpenSSLの公式Webサイト]にアクセスして、OpenSSL(1.X.Y)のソースコードをダウンロードする。<br> | ||
ダウンロードしたファイルを解凍する。<br> | ダウンロードしたファイルを解凍する。<br> | ||
tar xf openssl-<バージョン> | tar xf openssl-<バージョン> | ||
| 48行目: | 48行目: | ||
--http-uwsgi-temp-path=/<NginXのインストールディレクトリ>/uwsgi/ \ | --http-uwsgi-temp-path=/<NginXのインストールディレクトリ>/uwsgi/ \ | ||
--http-scgi-temp-path=/<NginXのインストールディレクトリ>/scgi/ \ | --http-scgi-temp-path=/<NginXのインストールディレクトリ>/scgi/ \ | ||
--with-perl_modules_path=/<NginXのインストールディレクトリ>/Perl \ | |||
--user=nginx --group=nginx \ | --user=nginx --group=nginx \ | ||
--without-poll_module --without-select_module --with-ipv6 \ | --without-poll_module --without-select_module --with-ipv6 \ | ||
--with-threads --with-file-aio --with-pcre --with-pcre-jit \ | --with-threads --with-file-aio --with-pcre --with-pcre-jit \ | ||
| 57行目: | 57行目: | ||
--with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_degradation_module --with-http_slice_module \ | --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_degradation_module --with-http_slice_module \ | ||
--with-http_auth_request_module --with-http_secure_link_module --with-http_stub_status_module --with-http_sub_module \ | --with-http_auth_request_module --with-http_secure_link_module --with-http_stub_status_module --with-http_sub_module \ | ||
--with-http_perl_module --with-http_perl_module=dynamic | --with-http_perl_module --with-http_perl_module=dynamic \ | ||
--with-mail --with-mail=dynamic --with-mail_ssl_module \ | --with-mail --with-mail=dynamic --with-mail_ssl_module \ | ||
--with-stream=dynamic --with-stream_ssl_module --with-stream_realip_module --with-stream_ssl_preread_module \ | --with-stream=dynamic --with-stream_ssl_module --with-stream_realip_module --with-stream_ssl_preread_module \ | ||
--with-compat \ | --with-compat \ | ||
--with-cc=/usr/bin/gcc --with-cpp=/usr/bin/g++ | --with-cc=/usr/bin/gcc --with-cpp=/usr/bin/g++ | ||
# OpenSSLを手動で設定する場合に記述する | |||
--with-openssl=<上記でダウンロードおよび解凍したOpenSSLのソースコードのトップディレクトリ> | |||
# 以下の設定はAIOを使用する場合に記述する | |||
--with-cc-opt='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchron ous-unwind-tables -fstack-clash-protection -g -fPIC -D_GNU_SOURCE' \ | --with-cc-opt='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchron ous-unwind-tables -fstack-clash-protection -g -fPIC -D_GNU_SOURCE' \ | ||
--with-ld-opt='-Wl,-z,relro,-z,now -pie' | --with-ld-opt='-Wl,-z,relro,-z,now -pie' | ||