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