#author("2017-03-30T14:14:05+09:00","default:wikiwriter","wikiwriter") &tag(Debian/Nginx); *目次 [#b0ab99a4] #contents *関連ページ [#xecaf30d] *参考情報 [#g5147bc1] -deb http://nginx.org/packages/debian/ jessie nginx *インストール [#g2ba8b88] -Debian 8公式だと1.6.2が最新版の模様。nginx公式リポジトリを使う。 -キーの追加 #pre{{ # wget http://nginx.org/keys/nginx_signing.key # apt-key add nginx_signing.key }} -リポジトリを追加。/etc/apt/sources.list.d/nginx.listを編集。 #pre{{ deb http://nginx.org/packages/debian/ jessie nginx deb-src http://nginx.org/packages/debian/ jessie nginx }} -インストール apt-get install nginx -2017/03/30(木)現在、1.10がインストールされた。 *設定 [#d9210c39] **自動起動の設定 [#tedaf4bd] -apacheが動いている場合はまず無効化 systemctl stop apache # だめな場合/etc/init.d/apache2 stop systemctl disable apache -以下で有効に systemctl start nginx systemctl enable nginx