Install nginx on ubuntu

1. Install libpcre3, libpcre3-dev
2. Install zlib1g-dev
3. Download nginx and unzip it
4. ./configure
5. make
6. sudo make install
7. cd /usr/local/nginx/sbin
8. sudo ./nginx

Open your web browser and type: http://localhost, you will get the below test page:


9. sudo ./nginx -s stop

原文地址:https://www.cnblogs.com/swnuwangyun/p/3478423.html