CentOS Linux under the installation of Nginx compiler detailed

Source: Internet
Author: User
Nginx's official website is www.nginx.org Nginx is: http://nginx.org/en/download.html because the design of the official website is very concise and not very air, so we can easily find what we need. Open page found there are three versions, respectively mainline version (development), Stable version (stable version), legact version (historical stable version). Here we download the latest stable version of nginx-1.6.2. Before installing Nginx, we need to make sure that the Gcc,openssl-devel,pcre-devel,zlib-devel Software library is installed on the system. We use Yum to install it here. After installing the software library on the CD, we will download the Nginx. Download command we use wget http://nginx.org/download/nginx-1.6.2.tar.gz download finished, we unzip, after decompression into the Nginx Directory Decompression command is tar zxvf Nginx-1.6.2.tar.gz below we start to set up, compile and install nginx run./configure--with-http_stub_status_module--with-http_gzip_static_module --without-http_rewrite_module--with-pcre--prefix=/usr/local/nginx Run make && do install to compile and install commands to run, Our Nginx installation is complete. If you want to run PHP do not forget to do some configuration after installation to access, nginx default installation is complete, the Web page file directory exists in the/usr/local/nginx/html directory

CentOS Linux under the installation of Nginx compiler detailed

Related Article

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.