Nginx High-Performance web Server (1) -- install nginx

Source: Internet
Author: User

Nginx High-Performance web Server (1) -- install nginx
1. Download

This time using the nginx-0.1.2.3 version,

Http://nginx.org/en/download.html new release

Http://nginx.org/download history

2. upload to the linux Server

Sz-bey nginx-0.1.2.3.tar.gz

3. Extract

3.1 create the directory mkdir nginx_123

3.2 unzip tar-zxvf nginx-0.1.2.3.tar.gz./nginx_123/

4. Configure the compiling environment

To compile nginx source code, you must use the configure script to automatically generate the Makefile file.

4.1 go to nginx-0.1.2.3 directory

4.2 run./configure -- prefix =/nginx (nginx is the previously created directory)

4.3 The installation of the pcre dependency package appears during execution, the installation method reference http://blog.csdn.net/wmq534/article/details/38141431

5. Compile and install

Make

Make install

6. Check whether the installation is successful.

Cd/usr/local/nginx/sbin

./Nginx-t

Result:

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./nginx start nginx under the cd/usr/local/nginx/sbin directory

8. Check whether startup is successful.

Enter http: // localhost in ie

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.