LoginSignup
1
1

More than 5 years have passed since last update.

nginx導入とAmon2が動くまで

Posted at

前回構築したAmon2をnginxで動かしたいと思います。

環境

  • ubuntu 14.04

実行手順

最新のnginxをインストール
参考 : http://qiita.com/hiroq/items/420424bc500d89fd1cc8

# (1) nginxサイトが配布するPGPキーを追加
curl http://nginx.org/keys/nginx_signing.key | sudo apt-key add -

# (2) リポジトリを一覧に追加
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"

# (3) アップデート後、nginxをインストール
sudo apt-get update
sudo apt-get install nginx

/etc/nginx.confに下記を追加

$ sudo /etc/init.d/nginx stop
$ sudo vi /etc/nginx.conf

 41         location / {
 42         proxy_pass http://127.0.0.1:5000/;
 43             proxy_read_timeout 60;
 44         }

追加後、nginxの再起動

$ sudo /etc/init.d/nginx start

ブラウザにアクセスして確認。

1
1
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
1
1