Install NGINX in LINUX Server Load balancer and nginx in linux Server Load balancer
1. Install the GCC compiling environment. If yes, it is not required.
1) install the mpc Library
2) install the gmp Library
3) install the mpfr Library
4) install GCC
The above GCC installation is not detailed, you can refer to a variety of great steps;
Ii. Install the pcre Library
Https://sourceforge.net/projects/pcre/files/pcre/
Download and decompress the package.
./Configure
Make
Make install
If an error is reported when you execute./configure for all the libraries to be installed, run the following parameters again./configure -- disable-shared -- with-pic
3. Install the zlib library
Http://zlib.net/zlib-1.2.8.tar.gz
./Configure
Make
Make install
4. Install the openssl library
Https://www.openssl.org/
./Configure
Make
Make install
If the above is not installed, various errors will be reported during compilation. In addition, after the above installation, you need to add the bin directory to the PATH; otherwise, the compilation will report an error because the entire command cannot be found;
5. Install NGINX
Http://nginx.org/en/download.html
After decompression, go to the folder and perform three steps.
./Configure
Make
Make install
After installation is completed, run/usr/local/nginx/sbin/nginx to check whether the process has been started:
Ps-ef | grep nginx
Root 19476 1 0 08:34? 00:00:00 nginx: master process./nginx
Nobody 19477 19476 0? 00:00:00 nginx: worker process
There is a master process and a processing process;
Check whether listening to port 80
Tcp 0 0 0.0.0.0: 80 0.0.0.0: * LISTEN
Enter http: // the IP address of the server to be installed. For example, http: // localhost/
The nginx welcome page is displayed, indicating that the installation is successful.