在Debian 8上安装Nginx 1.6(使用操作系统自带方式)
首先
在Debian 8上默认安装Nginx。
父篇文章:Nginx的各种安装方法和EOL总结。
日志
安装
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
# apt update; apt install -y nginx
... 略
确认的各种方式
# which nginx
/usr/sbin/nginx
# nginx -v
nginx version: nginx/1.6.2
# apt show nginx
Package: nginx
Version: 1.6.2-5+deb8u6
Installed-Size: 102 kB
Maintainer: Kartik Mistry <kartik@debian.org>
Depends: nginx-full (>= 1.6.2-5+deb8u6) | nginx-light (>= 1.6.2-5+deb8u6) | nginx-extras (>= 1.6.2-5+deb8u6), nginx-full (<< 1.6.2-5+deb8u6.1~) | nginx-light (<< 1.6.2-5+deb8u6.1~) | nginx-extras (<< 1.6.2-5+deb8u6.1~)
Homepage: http://nginx.net
Section: httpd
Priority: optional
Download-Size: 72.9 kB
APT-Manual-Installed: yes
APT-Sources: http://security.debian.org/debian-security/ jessie/updates/main amd64 Packages
Description: small, powerful, scalable web/proxy server
N: There is 1 additional record. Please use the '-a' switch to see it
# apt show nginx -a
Package: nginx
Version: 1.6.2-5+deb8u6
Installed-Size: 102 kB
Maintainer: Kartik Mistry <kartik@debian.org>
Depends: nginx-full (>= 1.6.2-5+deb8u6) | nginx-light (>= 1.6.2-5+deb8u6) | nginx-extras (>= 1.6.2-5+deb8u6), nginx-full (<< 1.6.2-5+deb8u6.1~) | nginx-light (<< 1.6.2-5+deb8u6.1~) | nginx-extras (<< 1.6.2-5+deb8u6.1~)
Homepage: http://nginx.net
Section: httpd
Priority: optional
Download-Size: 72.9 kB
APT-Manual-Installed: yes
APT-Sources: http://security.debian.org/debian-security/ jessie/updates/main amd64 Packages
Description: small, powerful, scalable web/proxy server
Package: nginx
Version: 1.6.2-5+deb8u5
Installed-Size: 102 kB
Maintainer: Kartik Mistry <kartik@debian.org>
Depends: nginx-full (>= 1.6.2-5+deb8u5) | nginx-light (>= 1.6.2-5+deb8u5) | nginx-extras (>= 1.6.2-5+deb8u5), nginx-full (<< 1.6.2-5+deb8u5.1~) | nginx-light (<< 1.6.2-5+deb8u5.1~) | nginx-extras (<< 1.6.2-5+deb8u5.1~)
Homepage: http://nginx.net
Tag: implemented-in::c, interface::daemon, network::server, network::service,
protocol::http, role::program, use::proxying
Section: httpd
Priority: optional
Download-Size: 72.6 kB
APT-Sources: http://deb.debian.org/debian/ jessie/main amd64 Packages
Description: small, powerful, scalable web/proxy server