First install the compile-time dependencies under privileged account (root):
Yum Install gcc gcc-c++ perl-y
First login to the OS with a non-privileged account (this is an example of account Comex):
Enter the data directory to download the relevant installation media
Mkdir/comexdata/packagecd/comexdata/packagewget Http://nginx.org/download/nginx-1.10.1.tar.gzwget/HTTP 120.52.73.43/jaist.dl.sourceforge.net/project/pcre/pcre/8.38/pcre-8.38.tar.gzwget https://www.openssl.org/ Source/openssl-1.0.2h.tar.gzwget http://zlib.net/zlib-1.2.8.tar.gz
Then unzip the file
CD/COMEXDATA/PACKAGETAR-ZXF nginx-1.10.1.tar.gz tar-zxf pcre-8.38.tar.gztar-zxf zlib-1.2.8.tar.gztar-zxf Openssl-1.0.2h.tar.gz
cd/comexdata/package/nginx-1.10.1./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-mail--with-mail_ssl_module--with-stream--with-threads--user=comex--group=comexgroup--with-pcre=/comexData /package/pcre-8.38--with-zlib=/comexdata/package/zlib-1.2.8--with-openssl=/comexdata/package/openssl-1.0.2h
Then install:
Make && make install
Test:
/comexhome/nginx/sbin/nginx-v
Linux (CentOS6.5) under Compile and install Nginx1.10.1