redhat compile and install nginx

Learn a thing, first of all to Tell me what network

http://nginx.org/en/linux_packages.html#RHEL-CentOS

 

A mounting compilation tools, dependencies 
# mainly installed PCRE - devel the Nginx need 
$ yum -Y the install  GCC  GCC -C ++ autoconf automake 
$ yum -Y the install zlib zlib-devel OpenSSL OpenSSL-devel PCRE- devel 


two ,, compiler installation Nginx 

2 . codecs: the tar -zxvf nginx- 1.14 . 0 . the tar .gz
 . 3 configuration:. ./configure --user = www --group = www --prefix = / usr / local / nginx --with-http_stub_status_module --with --with-http_v2_module --with--http_ssl_module http_gzip_static_module --with- ipv6 
# j2 represents 2Core, can be modified according to the actual needs of
 4 installation:. The make -j2 & the make  the install  

. 5 restart nginx.

 

Guess you like

Origin www.cnblogs.com/students/p/11426326.html