毎回ググってるのでメモ。
Ubuntu 12.04 LTS(サーバー版、x86_64)にnginxの安定版をインストールする手順。
launchpadにPPAがあるので、そこからインストールする。
NGINX Stable : “Nginx” team
add-apt-repositoryコマンドでPPAのnginx/stableを追加。aptでupdateしたあとにinstall。
$ sudo add-apt-repository ppa:nginx/stable $ sudo aptitude update $ sudo aptitude install nginx $ nginx -v nginx version: nginx/1.4.5
add-apt-repositoryコマンドは、python-software-propertiesパッケージをaptでインストールすれば使えるようになる。