Nginx high-performance Web server detailed (1)--Installation Nginx

Source: Internet
Author: User

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



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.