1. Download
This time using the nginx-0.1.2.3 version,
http://nginx.org/en/download.html New Release
Http://nginx.org/download Historical version
2. Uploading to the Linux server
Sz-bey nginx-0.1.2.3.tar.gz
3. Unzip
3.1 Creating a directory mkdir nginx_123
3.2 Decompression TAR-ZXVF nginx-0.1.2.3.tar.gz./nginx_123/
4. Configuring the compilation Environment
Nginx source code compilation requires the use of configure script to automatically generate makefile files
4.1 Entering the nginx-0.1.2.3 directory
4.2 Execute./configure--prefix=/nginx (Nginx is the newly created directory)
4.3 implementation will appear to install Pcre dependent package, installation method reference http://blog.csdn.net/wmq534/article/details/38141431
5. Compiling the installation
Make
Make install
6Check if the installation is successful
CD /usr/local/nginx/sbin
./nginx-t
The results show:
Nginx:the configuration file/usr/local/nginx/conf/nginx.conf syntax is OK
Nginx:configuration file/usr/local/nginx/conf/nginx.conf Test is successful
7 Start Nginx
Enter the CD /usr/local/nginx/sbin directory below./nginx start Nginx
8 Check whether the start is successful
Enter http://localhost in IE browser