This article address http://comexchan.cnblogs.com/, author Comex Chan, respect intellectual property rights, reproduced Please indicate the source, thank you!
Download related components source code
Component Name |
Component website |
Direct |
Pcre |
http://www.pcre.org/ |
Http://120.52.73.43/jaist.dl.sourceforge.net/project/pcre/pcre/8.38/pcre-8.38.tar.gz |
Openssl |
https://www.openssl.org/source/ |
Https://www.openssl.org/source/openssl-1.0.2h.tar.gz |
Zlib |
http://zlib.net/ |
Http://zlib.net/zlib-1.2.8.tar.gz |
Nginx |
http://nginx.org/ |
Http://nginx.org/download/nginx-1.10.0.tar.gz |
Extracting related components
CD/tmptar -zxf nginx-1.10. 0. Tar tar -zxf pcre-8.38. Tar . GZ tar -zxf zlib-1.2. 8. Tar . GZ tar -zxf openssl-1.0. 2h. tar. gz
Perform the compilation
cd/tmp/nginx-1.10.0
./configure--prefix=/comexhome/nginx--pid-path=/comexhome/nginx/nginx.pid--error-log-path=/comexlog/nginx/ Error.log--http-log-path=/comexlog/nginx/access.log--with-http_ssl_module--with-pcre=/tmp/pcre-8.38--with-zlib =/tmp/zlib-1.2.8--with-openssl=/tmp/openssl-1.0.2h
Compile Complete:
Then perform the Make installation
Make
Execution Complete:
Execute make Install
Make Install
Verify Nginx:
/comexhome/nginx/sbin/nginx-v
Start Nginx to verify that you can access
Then access this server's IP or host name, the following page appears to indicate that the installation was successful
Welcome to the next article:
"Linux (CentOS6.5) Nginx Registration system service (start, stop, restart, reload, etc.) & set boot-up"
===================================================
This article address http://comexchan.cnblogs.com/, author Comex Chan, respect intellectual property rights, reproduced Please indicate the source, thank you!
Linux (CentOS6.5) under the compiler installation Nginx official latest stable version (nginx-1.10.0)