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

更新日期: 2020-11-09 阅读次数: 6163 字数: 171 分类: Nginx

在新购的服务器系统 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 的具体区别是什么。

具体区别

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

  • core: 标准的 nginx 部署版本
  • full: 在 core 版本的基础上,包含了常用的三方模块
  • 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

tags: ubuntu 20.04

关于作者 🌱

我是来自山东烟台的一名开发者,有敢兴趣的话题,或者软件开发需求,欢迎加微信 zhongwei 聊聊, 查看更多联系方式