LoginSignup
6
6

More than 5 years have passed since last update.

Nginxをソースからコンパイル&インストール

Last updated at Posted at 2013-07-22

1. ソースをダウンロード & 解凍

http://nginx.org/en/download.html からソースをダウンロードして、tarとかで解凍

2. configure

  • インストール先は/usr/local/nginxとする
  • httpsが使えること
  • リバースプロキシとして使うときに、クライアントのIPアドレスを引き渡したい
  • python使わないのでuwsgiは不要
  • SSIも不要
$ ./configure --prefix=/usr/local/nginx --with-http_ssl_module --without-http_ssi_module --without-http_uwsgi_module --with-http_realip_module

3. make

$ make

4. make install

$ sudo make install
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6