Nginx: Difference between revisions

From The Power of Many
Created page with "[http://nginx.org/ Nginx]"
 
No edit summary
Line 1: Line 1:
[http://nginx.org/ Nginx]
[http://nginx.org/ Nginx]
Nginx 已被证明具有极高的稳定性、高性能和高可靠性,并提供了一套强大的工具。
与 [https://httpd.apache.org/ Apache] 相比, Nginx 具有的优势:
# 轻量
# 占用内存少
# 配置项更丰富
# 高负载下性能更好
=== Installation ===
官方 repo 配置 请参考 [http://nginx.org/en/linux_packages.html nginx.org]
=== Configuration ===
<code>/etc/nginx/nginx.conf</code> 包含全局配置, 任何站点配置请放在 <code>/etc/nginx/conf.d/</code> 目录下.
=== Performance ===
# 启用gzip压缩
#
=== Caching ===

Revision as of 00:22, 13 May 2020

Nginx

Nginx 已被证明具有极高的稳定性、高性能和高可靠性,并提供了一套强大的工具。

Apache 相比, Nginx 具有的优势:

  1. 轻量
  2. 占用内存少
  3. 配置项更丰富
  4. 高负载下性能更好

Installation

官方 repo 配置 请参考 nginx.org

Configuration

/etc/nginx/nginx.conf 包含全局配置, 任何站点配置请放在 /etc/nginx/conf.d/ 目录下.

Performance

  1. 启用gzip压缩

Caching