Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install NGINX for RHEL6

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

RHEL6 how to install NGINX, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

1. Install the dependency package (select the installation directory and execute the command)

Yum-y install make gcc gcc-c++ openssl openssl-devel pcre-devel zlib-devel

-y defaults to yes for all questions

Install automatic installation

Dependencies used by make to compile binaries

Gcc and gcc-c++ need to be used to compile the cmax cymbal + language.

PCRE nginx's http module uses pcre to parse regular expressions

Openssl nginx supports http and https protocols. Openssl is a secure socket layer cipher library with cryptographic algorithms, commonly used key and certificate encapsulation management functions and SSL protocol

Zlib-devel nginx uses zlib to gzip the contents of http packages

two。 Download the nginx installation package

Nginx download address: http://nginx.org/en/download.html

Choose the version you want

Wget-c http://nginx.org/download/nginx-1.12.2.tar.gz# I chose version 1.12.2

3. Decompression

Tar xzf nginx-1.12.2.tar.gz

4. Go to the nginx-1.12.2 directory and install

Cd nginx-1.6.3 # enter the directory. / configure-- the prefix=/usr/local/nginx # configure script does a lot of work, such as environmental monitoring, parameter parsing, directory generation, Makefile file generation, etc.-- prefix specifies the location where the software is installed make & & make install# make means to compile. Is to compile the source package into a binary executable file # & & when the make (previous) compilation is successful, execute the following command # make install installation

5. Running

Cd / usr/local/nginx # switch the directory specified by configure. / sbin/nginx # start the service ps aux | is it helpful for grep nginx # to check whether the process has finished reading the above contents? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report