Nginx Source Package installation Nginx rewrite nginx php nginx.conf where

Source: Internet
Author: User
First of all, http://nginx.org/download/download a version of the Nginx package that you need. Download using wget

If you need to redirect the installation of the corresponding package

Yum-y Install pcre*
wget http://nginx.org/download/nginx-1.7.8.tar.gz

After the download is complete, unpack the corresponding package.

TAR-ZXVF nginx-1.7.8.tar.gz

  1. Switch to the corresponding source directory using the CD after the decompression is complete.
  2. Run
  3. ./configure--prefix=/usr/local/nginx \--with-http_ssl_module--with-http_stub_status_module--with-pcre

    If there is no error directly run make && make install Cd/usr/local/nginx/sbin./nginx start the corresponding Nginx service

    After successful launch, use the browser to access the corresponding IP.
  4. If you cannot access please shut down the server's firewall or add 80 port mappings

The above describes the Nginx source package installation, including nginx aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.