Nginx installation documentation

Preface:

Recently, system deployment personnel over there, let's install Nginx process to write a fool. So there is this document, the spirit of independence, Better Together, share. I think the entry is white, there are pictures, and even run the process diagram, it is important (to avoid running a problem without knowing it).

Of course, this is only the deployment of V1 manual workers, then they feel too much trouble, there is a yum install that lay vessel deployment. Behind the opportunity, it will be written.

The same words prompted again, if that image is too small, not clear enough, please send the picture to open a separate (simple drag is about pictures, the browser will automatically open a new tab, place the picture). The original picture is very clear.

I. Process Overview:

 

 

This should be the first time I exposed his own notes, the word does not look good, a lot of magnanimous Kazakhstan. After all, the focus is not the word, is knowledge. Hee hee)

  1. Install its dependencies.
  2. Download and unzip the archive Nginx.
  3. Configure, compile, and install Nginx.
  4. Start and verify Nginx.

Second, the installation of dependencies:

  1. Install gcc-c ++:

 

   Installation pcre:

 

 Installation zlib:

 

 Installation openssl:

 

 

 

 

PS: order is not dependent on, and since part of the system-dependent part of the reason previously installed, the installation is not valid, suggesting "aready install" and the like.

Therefore, you can install nginx, nginx based on erroneous information at the time of software installation to install a lack of dependence. Such as:

 

 

(Lack pcre software dependent

Third, download and unzip the archive Nginx:

  1. Reaches a specified directory

 

 Download archive:

PS: Download do not have the same direct download Ali mirrored by address or directly copy the files

Extracting archive:

 

 

 

 

Fourth, configure, compile, install Nginx:

  1. Nginx into the directory:

 

 Configuration Nginx:

 

 

 

 Compile Nginx:

 

 

 

 Install Nginx:

 

 

 

 

Fifth, start and verification:

  1. Nginx start:

In nginx program execution ./nginx directory

  1. verification:

Execute ps aux | grep nginx

or

Log in localhost, see if the following page:

 

 

VI Summary:

So far Nginx installation is complete, mostly because of problems depend not match, the system configuration conflicts.

VII Appendix:

Nginx installation directory: / usr / local / nginx

Nginx configuration directory: / usr / local / nginx / conf

Nginx program directory: / usr / local / nginx / sbin

Guess you like

Origin www.cnblogs.com/qingmuchuanqi48/p/11917407.html