Инсталляция Nginx 1.8 сервер на Debian из пакетов


# apt-get update -y && apt-get upgrade -y
# apt-get install -y vim curl links wget


# cd /tmp/
# wget http://nginx.org/keys/nginx_signing.key
# apt-key add nginx_signing.key


# vi /etc/apt/sources.list


Добавляю в конец файла

deb http://nginx.org/packages/debian/ jessie nginx
deb-src http://nginx.org/packages/debian/ jessie nginx


# apt-get update
# apt-get install -y nginx


# service nginx restart
# service nginx status


# curl -I http://localhost
HTTP/1.1 200 OK
Server: nginx/1.8.1
Date: Sat, 02 Apr 2016 13:53:13 GMT
Content-Type: text/html
Content-Length: 612
Last-Modified: Tue, 26 Jan 2016 15:24:47 GMT
Connection: keep-alive
ETag: "56a78fbf-264"
Accept-Ranges: bytes


# links http://localhost