1. Environment Preparation:
Server System version: CentOS 6.5
Nginx software version: nginx-1.13.9
2. Resource Preparation:
Nginx:http://nginx.org/download/nginx-1.13.9.tar.gz
3. Installation steps:
You can perform an installation of all missing dependency packages:
Yum Install GCC GCC make Libtool zlib zlib-devel OpenSSL openssl-devel pcre pcre-devel
can also be installed separately, the details are as follows:
3.1. Install Pcre Library
Yum Install Pcre
Yum Install Pcre-devel
3.2. Install zlib Library
Yum Install zlib
Yum Install Zlib-devel
3.3. Installation of GCC, gcc-c++
Yum Install GCC
Yum Install gcc-c++
3.4. Installing OpenSSL
Yum Install OpenSSL
Yum Install Openssl-devel
3.5, install Automake, autoconf, Libtool, make
Yum Install Automake
Yum Install autoconf
Yum Install Libtool
Yum Install make
4, enter the/opt directory, download Nginx
[Email protected] ~]# cd/opt/wget http://nginx.org/download/nginx-1.13.9.tar.gz
Unpacking the Nginx installation package
tar -zxvf nginx-1.13. 9. Tar
Installing Nginx
[[email protected] doc]#./configure--prefix=/opt/nginx--with-http_ssl_module--with- make makeInstall
5. Start Nginx
[Email protected] nginx-1.13. 9
Browser input IP Address: http://192.168.168.134
Complete steps for Nginx installation on Linux servers