apt-get 安装:
sudo apt-get install nginx
源码安装:
1.官网下载 Nginx 安装包
http://nginx.org
2.安装 Nginx
./configure
make
sudo make install