Installing Nginx under Linux

Source: Internet
Author: User

First, download:1、wget wgethttp//、Tar-ZXVF nginx-1.8.1.Tar. GZ3, CD nginx-1.8.1Second, install the dependent module:4、Yum-YInstall GCC GCC-c++ autoconf Automake Make5、Yum-YInstallZlib zlib-devel OpenSSL openssl--devel pcre pcre-devel6、Yum-YInstallOpenSSL openssl-devel
Third, compile and install7,./configure--prefix=/usr/local/nginx-1.8.1--with-http_ssl_module--with-http_spdy_ Module--with-http_stub_status_module--with-Pcre8、 Make9、 Make InstallTen, cd/usr/local/nginx-1.8.1/Sbin
Four, start: One、./Nginx Five, commonly used commands./nginx-s reload restart./nginx-v load./nginx-s stop stops./NGINX-T See if the configuration is correct

Installing Nginx under Linux

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