Install NGINX in LINUX Server Load balancer and nginx in linux Server Load balancer

Source: Internet
Author: User
Tags openssl library

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.