LoginSignup
1

More than 5 years have passed since last update.

最新版nginxのインストールメモ

Last updated at Posted at 2018-01-19

公式だとLinuxやUbuntuがごちゃごちゃに書いてあったので、まとめ。
root権限で実行する。

wget https://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key

cp /etc/apt/sources.list /etc/apt/sources.list.org

cat << EOF >> /etc/apt/sources.list
deb http://nginx.org/packages/ubuntu/ xenial nginx
deb-src http://nginx.org/packages/ubuntu/ xenial nginx
EOF

apt update
apt install nginx

sources.listに書き出すxenialを書き換えればtrustyやzestyでもつかえるみたいです。

「公式サイト」
http://nginx.org/en/linux_packages.html

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