Centos7 Installing Nginx

Source: Internet
Author: User
Tags automake

1. Install the required package: Yum install-yapr* autoconf automake bison bzip2 bzip2* cloog-ppl compat* cpp Curl Curl-develfontconfig FONTC Onfig-devel freetype freetype* freetype-devel gcc gcc-c++gtk+-devel gd gettext gettext-devel glibc kernel kernel-headers k Eyutilskeyutils-libs-devel krb5-devel libcom_err-devel libpng libpng-devel libjpeg*libsepol-devel libselinux-devel Libstdc++-devel libtool* libgomp libxml2libxml2-devel libxpm* libtiff libtiff* make MPFR ncurses* NTP opensslopenssl-deve L Patch pcre-devel perl php-common php-gd policycoreutils telnett1lib t1lib* nasm nasm* wget zlib-devel gcc gcc-c ++autoconf automake zlib zlib-devel OpenSSL openssl-devel pcre-devel

2. Download Nginx:http://nginx.org/en/download.html

3. Unzip and install:

Tar-zxvfnginx-1.9.2.tar.gz

CD NGINX-1.9.2/

./configure

Make && Make Install

What pack is missing, and Yum complements what package, and then again./configure

4. Start Nginx:/usr/local/nginx/sbin/nginx-c/usr/local/src/nginx-1.9.2/conf/nginx.conf

See if the port is up: Netstat-anput|grep 80

Set the port inside the/usr/local/src/nginx-1.9.2/conf/nginx.conf file


Centos7 Installing Nginx

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.