Install Nginx in 5 minutes and nginx in 5 minutes

Source: Internet
Author: User
Tags install openssl

Install Nginx in 5 minutes and nginx in 5 minutes
 1. Install gcc (it is already provided after centos 7 and can be installed after Step 1 fails)Yum install gcc-c ++ 2. Install pcreYum install-y pcre-devel3. Install zlibYum install-y zlib-devel4. Install opensslYum install-y openssl-devel5. Download and decompress Nginx (then go to the Nginx directory)Wget http://nginx.org/download/nginx-1.12.2.tar.gz6. Compile Nginx (load common modules such as ssl)./Configure -- prefix =/usr/local/nginx -- with-http_stub_status_module -- with-http_gzip_static_module -- with-http_ssl_module7. Install NginxMake & make install 8. Start/Usr/local/nginx/sbin/nginx9. Stop/Usr/local/nginx/sbin/nginx-s stop (reload indicates restart)10. Access the IP address of the machine where Nginx is located in the browser to verify that Nginx is successfully started.Http ://Yourhost/Note: Nginx configuration file location/Usr/local/nginx/conf/nginx. conf

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.