Nginx Official website:
Http://nginx.org/en/download.html
wget http://nginx.org/download/nginx-1.6.3.tar.gz
Tar zxvf nginx-1.6.3.tar.gz-c/opt/nginx
CD!$
./configure initialization Configuration
If error: Description does not install Pcre library file
650) this.width=650; "src=" http://www.linuxidc.com/upload/2015_03/15031418518380.jpg "alt=" 15031418518380.jpg "/ >
After installing Pcre, you can initialize successfully, display the installation path of Nginx
650) this.width=650; "src=" Http://www.linuxidc.com/upload/2015_03/15031418513659.jpg "alt=" detailed Linux installation configuration Nginx "/ >
Make && make install build installation
Cp/usr/local/nginx/sbin/nginx/usr/sbin adding the Nginx launcher to the $PATH environment variable
/usr/local/nginx/sbin/nginx-s start/stop/reload/restart nginx Control command
(/usr/local/nginx/sbin/nginx-c conf/nginx.conf Specify configuration file startup)
If error:
./nginx:error while loading shared libraries:libpcre.so.1:cannot open Shared object file:no such file or directory
Note that the installed Pcre library is not shared, and a soft connection to the/lib64 shared library is available (if the 32-bit system is connected to/lib)
Ln-s/usr/local/lib/libpcre.so.1/lib64
Start the Nginx again and start normally.
Next is to modify the Nginx configuration file nginx.conf, tuning integration.
PS: Install Pcre Library
Download Source Bundle: https://sourceforge.net/projects/pcre/files/pcre/8.38/
Tar zxvf pcre-8.38.tar.gz-c/opt/pcre
CD!$
./configure
Make && make install
Reference Documentation:
Http://www.linuxidc.com/Linux/2015-03/114988.htm
nginx1.6.3 source installation, CENTOS6 system under the detailed