「インストール - NginX(SUSE)」の版間の差分

ナビゲーションに移動 検索に移動
33行目: 33行目:
NginXをビルドおよびインストールする。<br>
NginXをビルドおよびインストールする。<br>
<u>NginXのビルドにおいて、ビルドディレクトリを作成すると失敗することに注意する。</u><br>
<u>NginXのビルドにおいて、ビルドディレクトリを作成すると失敗することに注意する。</u><br>
  ./configure --prefix=/<NginXのインストールディレクトリ>/Nginx \
  ./configure \
  --sbin-path=/<NginXのインストールディレクトリ>/nginx \
--prefix=<NginXのインストールディレクトリ> \
  --conf-path=/<NginXのインストールディレクトリ>/nginx.conf \
  --sbin-path=/<NginXのインストールディレクトリ>/sbin/nginx \
  --conf-path=/<NginXのインストールディレクトリ>/etc/nginx.conf \
  --pid-path=/<NginXのインストールディレクトリ>/nginx.pid \
  --pid-path=/<NginXのインストールディレクトリ>/nginx.pid \
  --with-threads --with-file-aio --with-pcre --with-openssl=<上記でダウンロードおよび解凍したOpenSSLのソースコードのトップディレクトリ> \
--modules-path=/<NginXのインストールディレクトリ>/modules/ \
  --with-http_v2_module --with-http_ssl_module --with-http_addition_module \
--error-log-path=/<NginXのインストールディレクトリ>/log/error.log \
--http-log-path=/<NginXのインストールディレクトリ>/log/access.log \
--lock-path=/<NginXのインストールディレクトリ>/nginx.lock \
--http-client-body-temp-path=/<NginXのインストールディレクトリ>/tmp/ \
--http-proxy-temp-path=/<NginXのインストールディレクトリ>/proxy/ \
--http-fastcgi-temp-path=/<NginXのインストールディレクトリ>/fastcgi/ \
--http-uwsgi-temp-path=/<NginXのインストールディレクトリ>/uwsgi/ \
--http-scgi-temp-path=/<NginXのインストールディレクトリ>/scgi/ \
--user=nginx --group=nginx \
--with-openssl=<上記でダウンロードおよび解凍したOpenSSLのソースコードのトップディレクトリ> \
--without-poll_module --without-select_module --with-ipv6 \
  --with-threads --with-file-aio --with-pcre --with-pcre-jit \
  --with-http_v2_module --with-http_ssl_module --with-http_addition_module --with-http_realip_module \
  --with-http_xslt_module --with-http_xslt_module=dynamic \
  --with-http_xslt_module --with-http_xslt_module=dynamic \
  --with-http_image_filter_module --with-http_image_filter_module=dynamic --with-http_dav_module --with-http_mp4_module --with-http_gunzip_module \
  --with-http_image_filter_module --with-http_image_filter_module=dynamic --with-http_dav_module --with-http_mp4_module --with-http_flv_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-perl_modules_path=/<NginXのインストールディレクトリ>/Perl \
  --with-http_perl_module --with-http_perl_module=dynamic --with-perl_modules_path=/<NginXのインストールディレクトリ>/Perl \
  --with-mail --with-mail=dynamic --with-mail_ssl_module \
  --with-mail --with-mail=dynamic --with-mail_ssl_module \
  --with-cc=/usr/bin/gcc --with-cpp=/usr/bin/g++
--with-stream=dynamic --with-stream_ssl_module --with-stream_realip_module --with-stream_ssl_preread_module \
  --with-cc=/usr/bin/gcc --with-cpp=/usr/bin/g++ \
--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-compat
<br>
<br>
NginXを開始する場合、以下のコマンドを実行する。<br>
NginXを開始する場合、以下のコマンドを実行する。<br>
69行目: 87行目:
  [Service]
  [Service]
  PIDFile=/<NginXのインストールディレクトリ>/nginx.pid
  PIDFile=/<NginXのインストールディレクトリ>/nginx.pid
  ExecStartPre=/<NginXのインストールディレクトリ>/nginx -t
  ExecStartPre=/<NginXのインストールディレクトリ>/sbin/nginx -t
  ExecStart=/<NginXのインストールディレクトリ>/nginx -g "daemon off;"
  ExecStart=/<NginXのインストールディレクトリ>/sbin/nginx -g "daemon off;"
  ExecReload=/bin/kill -s HUP $MAINPID
  ExecReload=/bin/kill -s HUP $MAINPID
  KillSignal=SIGQUIT
  KillSignal=SIGQUIT

案内メニュー