ubuntu 20.04 apt install nginx-core/light/full 的区别

发布时间: 2020-11-09 16:20:39 作者: 大象笔记

在新购的服务器系统 Ubuntu 20.04 上部署生产环境。想通过 apt 安装 nginx,发现提示中有N个选项:

$ nginx

Command 'nginx' not found, but can be installed with:

apt install nginx-core    # version 1.18.0-0ubuntu1, or
apt install nginx-extras  # version 1.18.0-0ubuntu1
apt install nginx-full    # version 1.18.0-0ubuntu1
apt install nginx-light   # version 1.18.0-0ubuntu1

之前的 ubuntu 版本并没有发现这个区别,不知道 core, full, light 的具体区别是什么。

具体区别

网上查了一下,区别如下:

看起来 nginx core 版本更适合我。

安装 nginx

apt install nginx-core

参考

https://askubuntu.com/questions/553937/what-is-the-difference-between-the-core-full-extras-and-light-packages-for-ngi

我是一名山东烟台的开发者,联系作者