Help us understand the problem. What is going on with this article?

Ubuntu14.04にnginxとpassengerをインストール

More than 3 years have passed since last update.

sinatraアプリケーションを動作させるためにnginxとpassengerをインストール・設定した際の作業メモです。
基本的にPassengerのユーザーガイドの通りに進めていけば大丈夫でした。
https://www.phusionpassenger.com/documentation/Users%20guide%20Nginx.html#install_on_debian_ubuntu

$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7
$sudo apt-get install apt-transport-https ca-certificates
$sudo vi /etc/apt/sources.list.d/passenger.list

# Ubuntu 14.04
# deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main

$sudo chown root: /etc/apt/sources.list.d/passenger.list
$sudo chmod 600 /etc/apt/sources.list.d/passenger.list
$sudo apt-get update
$sudo apt-get install nginx-extras passenger
$sudo passenger-config --root 
# 上の出力結果をnginx.confに記述
$sudo vi /etc/nginx/nginx.conf

# http {
#   passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
#   passenger_ruby /home/vagrant/.rbenv/shims/ruby;
# }

# シンタックスチェック
$sudo nginx -t
$sudo service nginx start
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした