LoginSignup
12
10

More than 5 years have passed since last update.

virtualbox + ubuntuにnginxをインストール

Posted at

virtualbox + ubuntuにnginxをインストールしたときのメモ。

環境


  • VirtualBox 4.3
  • ubuntu 14.04
  • nginx 1.6.2

インストール


2015/03/02現在の最新のStable versionをインストールします。

# nginxのAPTキーを登録する
$ curl http://nginx.org/keys/nginx_signing.key | sudo apt-key add -

# リポジトリを追加
$ sudo sh -c "echo 'deb http://nginx.org/packages/ubuntu/ trusty nginx' >> /etc/apt/sources.list"
$ sudo sh -c "echo 'deb-src http://nginx.org/packages/ubuntu/ trusty nginx' >> /etc/apt/sources.list"

# インストール
$ sudo apt-get update
$ sudo apt-get install nginx
$ nginx -v
nginx version: nginx/1.6.2

nginxを起動してみる


$ sudo /etc/init.d/nginx start
$ ps aux | grep nginx
root      6227  0.0  0.0  31196   992 ?        Ss   17:34   0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf                    
nginx     6228  0.0  0.0  31584  1656 ?        S    17:34   0:00 nginx: worker process

起動しました。

12
10
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
12
10