Use Nginx to deploy a high-performance web server
What are we going to learn this time? It is to use Nginx to build the simplest web server displaying “Hello World” on a machine. then we will Step by step let’s try~ 1. Nginx package The latest development version is 1.1.12: We can download the stable version to try: 2. Download, decompress, and install Nginx Here we take Linux/Unix: nginx-1.0.11.tar.gz as an example. Download and unzip: wget http://nginx.org/download/nginx-1.0.11.tar.gz tar -zxvf nginx-1.0.11.tar.gz But do not rush to install after downloading and decompressing, because Nginx depends on a lot of software, we assume that your Linux environment is “clean”, so the following is mentioned All packages that Nginx depends on. Please follow the steps below to install: sudo apt-get install gcc sudo apt-get install g++ sudo apt-get install make sudo apt-get install libz-dev sudo apt-get install libbz2-dev sudo apt-get install libreadline-dev This is some basic software, plus PCRE to install. PCRE stands for “Perl Compatible Regular Short for “Expressions”, is a regular expression library. Download, extract and install PCRE: wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.13.tar.gz tar -zxvf pcre-8.13.tar.gz cd pcre-8.13.tar.gz ./configure sudo make sudo make install At this time, install the nginx-1.0.11.tar.gz we just downloaded tar -zxvf nginx-1.0.11.tar.gz cd nginx-1.0.11 ./configure sudo make sudo make…