ふり返る暇なんて無いね

日々のメモ書きをつらつらと

Ubuntu12.04で最新の安定版nginxをインストールする

ubuntuの公式で入るnginxはバージョンが若干古いのでnginxの公式レポジトリを使うの巻。


こんな環境

% lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.3 LTS
Release:        12.04
Codename:       precise

若干古い

% aptitude show nginx
Package: nginx
State: installed
Automatically installed: no
Version: 1.1.19-1ubuntu0.5
Priority: optional
Section: httpd
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Uncompressed Size: 86.0 k
Depends: nginx-full | nginx-light
Provided by: nginx-full
Description: small, but very powerful and efficient web server and mail proxy
 Nginx (engine x) is a web server created by Igor Sysoev and kindly provided to the open-source community. This server can be used as standalone HTTP server and as a reverse proxy
 server before some Apache or another big server to reduce load to backend servers by many concurrent HTTP-sessions.

 This is a dummy package that selects nginx-full by default, but also can be installed with nginx-light for upgrading to nginx-light directly.
Homepage: http://nginx.net

nginxの公式レポジトリを設定してそこからインストールする。

aptitude install python-software-properties

add-apt-repository ppa:nginx/stable
aptitude update 
aptitude install nginx

新しいのが入った!

# aptitude show nginx
Package: nginx
New: yes
State: installed
Automatically installed: no
Version: 1.4.4-1~precise0
Priority: optional
Section: httpd
Maintainer: Kartik Mistry <kartik@debian.org>
Architecture: all
Uncompressed Size: 93.2 k
Depends: nginx-full | nginx-light
Provided by: nginx-extras, nginx-full, nginx-light, nginx-naxsi, nginx-naxsi-ui, nginx-passenger
Description: small, powerful, scalable web/proxy server
 Nginx ("engine X") is a high-performance web and reverse proxy server created by Igor Sysoev. It can be used both as a standalone web server and as a
 proxy to reduce the load on back-end HTTP or mail servers.

 This is a dependency package to install either nginx-full (by default) or nginx-light.


SEE ALSO: http://wiki.nginx.org/Install