nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev. For a long time, it has been running on many heavily loaded Russian sites including Yandex, Mail.Ru, VK, and Rambler. According to Netcraft, nginx served or proxied 24.86% busiest sites in July 2018. Here are some of the success stories: Dropbox, Netflix,, FastMail.FM.
Nginx 官网


sudo apt update


sudo apt upgrade -y

安装 Nginx 前需先安装 software-properties-common

sudo apt install -y software-properties-common

安装 Nginx

sudo add-apt-repository ppa:nginx/stable

sudo apt update

sudo apt install -y nginx

启动 Nginx

sudo nginx

查看 Nginx 版本

sudo nginx -v

允许 Nginx 通过防火墙

sudo ufw allow 'Nginx Full'