Install Nginx on Linux

Source: Internet
Author: User


Download Nginx:wget http://nginx.org/download/nginx-1.6.2.tar.gz

Decompression: Tar zxvf nginx-1.6.2.tar.gz

Go to Nginx directory: CD nginx

Installation:./configure--prefix=/usr/local/nginx

An error occurred saying that the Pcre "regular module" was not installed

Installing Pcre:yum Install Pcre-devel

Install Nginx:./configure--prefix=/usr/local/nginx again

An error occurred saying that LIZB was not installed

Installing Lizb:yum Install Lizb-devel

Install Nginx:./configure--prefix=/usr/local/nginx again

Installation is successful!

Then compile: Make && make install



Start service:./sbin/nginx

Prompt service failed to start, Port 80 is occupied.

To see which port is occupied: NETSTAT-ANTP

Assuming that the httpd occupies the port, port is lifted: pkill-9 http

Start Nginx again:./sbin/nginx

Ok! Installation Successful







Install Nginx on Linux

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.