安装pcre依赖库(http://www.pcre.org/)
sudo apt-get update
sudo apt-get install libpcre3 libpcre3-dev
安装zlib依赖库(http://www.zlib.net)
sudo apt-get install zlib1g-dev
下载并解压nginx
进入解压文件
运行./configure进行初始化配置
https://www.cnblogs.com/EasonJim/p/7806879.html