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, Wordpress.com, FastMail.FM.
sudo apt update
sudo apt upgrade -y
安装 Nginx 前需先安装 software-properties-common
sudo apt install -y software-properties-common
sudo add-apt-repository ppa:nginx/stable sudo apt update sudo apt install -y nginx
查看 Nginx 版本
sudo nginx -v
允许 Nginx 通过防火墙
sudo ufw allow 'Nginx Full'