Linux Nginx Installation/start-up/restart/stop

Source: Internet
Author: User

Nginx is a high-performance Web server is also very good use of reverse proxy server, can achieve load balancing, static and dynamic separation strategy, under the Linux used very much. The following is a http://nginx.org/en/download.html installation process that requires knowledge of the Linux network and the configuration of the Yum source to be familiar to download and pass to the server. The first step is to decompress TAR-ZXVF nginx-1.13.1.tar.gz
Go to the nginx-1.13.1 directory and view the files below


Found that Nginx is published through the source package, and Nginx is written in C, so you need to install C/D + + compiler yum Install gcc


As above, GCC has been installed, below to install Nginx

Detected finally, found that the dependent Pcre library does not, the following we to install Pcre https://ftp.pcre.org/pub/pcre/pcre after the download is also to give tar.gz files, first to unzip it TAR-ZXVF Pcre-8.00.tar.gz
After the decompression is complete with the following files, still is the source installation





Say we g++ not find, we come to install g++ yum install gcc-c++
Come back and continue installing Pcre./configuremake Install
Pcre installation complete, go back to install Nginx
Missing zlib, we need to install zlib Http://www.zlib.net/zlib again tar.gz to manage, first unzip
Found that zlib is also managed by the source package, to install zlib./configuremake install installed, in to install Nginx./configuremake Install the installation is finally successful. The software was installed to the/usr/local/nginx boot nginx./usr/local/nginx/sbin/nginx access Nginx (IP address: 192.168.100.100, port number:)/HTTP/ The 192.168.100.100:8080/nginx was installed successfully.

Stop Nginx nginx-s Stop restart Nginx nginx-s Reload Summary: Install Nginx under Linux, first need to install gcc-c++ compiler. Then install Nginx-dependent pcre and zlib packages. The final installation of Nginx can be.

Linux Nginx Installation/start-up/restart/stop

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.