linux-rhel6.4 Deploying Nginx

Source: Internet
Author: User

Check the installation

[Email protected] ~]# rpm-qa pcre*pcre-devel-7.8-6.el6.x86_64pcre-7.8-6.el6.x86_64[[email protected] ~]# Rpm-qa Openssl*openssl-1.0.0-27.el6.x86_64

Installing Nginx

Package: http://nginx.org/en/download.html

[[email protected] ~]# TAR-ZXVF nginx-1.10.3.tar.gz[[email protected] ~]# CD Ngunx-1.10.3[[email protected] ~]#./configu Re./configure:error:the HTTP Rewrite module requires the PCRE library.

Error, Reason: No pcre-devel installed


Resolve, mount the system disk and locate the RPM package installed:

[email protected] packages]# ls pcre*pcre-7.8-6.el6.i686.rpm pcre-7.8-6.el6.x86_64.rpm pcre-devel-7.8-6.el6.i686.rpm Pcre-devel-7.8-6.el6.x86_64.rpm[[email protected] packages]# RPM-IVH pcre-devel-7.8-6.el6.x86_64.rpm warning:pcre-devel-7.8-6.el6.x86_64.rpm:header V3 RSA/SHA256 Signature, key ID Fd431d51:nokeypreparing ########################################### [100%] 1:pcre-devel # ########################################## [100%]


Re-install succeeded:

[[Email protected] nginx-1.10.3]# ./configure checking for os + linux  2.6.32-358.el6.x86_64 x86_64checking for C compiler ... found +  using gnu c compiler + gcc version: 4.4.7 20120313  (Red Hat  4.4.7-3)   (GCC)  checking for gcc -pipe switch ... found ...   nginx http client request body temporary files:  "Client_body_ Temp "  nginx http proxy temporary files: " proxy_temp "  nginx  http fastcgi temporary files:  "Fastcgi_temp"   nginx http uwsgi  temporary files:  "Uwsgi_temp"   nginx http scgi temporary files:   "Scgi_temp" [[email protected] nginx-1.10.3]# make[[email protected]  Nginx-1.10.3]# make install 


Home Page Test:

[Email protected] ~]# Cd/usr/local/nginx/html[[email protected] html]# cat index.html
<! Doctype html>


Error, no service opened:

[[email protected] html]# Curl Http://localhostcurl: (7) couldn ' t connect to host


Open service Test succeeded:

[[email protected] ~]# cd /usr/local/nginx/sbin[[email protected] sbin]#  curl http://localhost<! Doctype html>

This article is from the "Shei" blog, make sure to keep this source http://kurol.blog.51cto.com/11433546/1927570

linux-rhel6.4 Deploying 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.