Linux cent OS 6.5 installation Nginx

Source: Internet
Author: User
Tags openssl nginx server

1. Download the relevant components

Yum install-y gcc gcc-c++ Installing the C + + compiler

wget http://sourceforge.net/projects/pcre/files/pcre/8.37/pcre-8.37.tar.gz

wget ftp://ftp.openssl.org/source/old/1.0.1/openssl-1.0.1j.tar.gz

wget http://labs.frickle.com/files/ngx_cache_purge-2.1.tar.gz

wget http://nginx.org/download/nginx-1.6.2.tar.gz

Unzip the Zlib/pcre/openssl/purge and install it sequentially, for example:

TAR-ZXVF openssl-1.0. 1j.tar.gz   chmod a+x openssl-1.0. 1j cd OpenSSL-1.0  . 1j. /config--prefix=/usr/local--openssldir=/usr/local/OpenSSL make do   install  
./configure--add-module=/root/ngx_cache_purge-2.1--prefix=/etc/nginx--sbin-path=/usr/sbin/nginx--conf-path=/etc/nginx/nginx.conf--error-log-path=/var/log/nginx/error.log--http-log-path=/var/log/nginx/access.log--pid-path=/var/run/nginx.pid--Lock-path=/var/run/nginx.Lock--http-client-body-temp-path=/var/cache/nginx/client_temp--http-proxy-temp-path=/var/cache/nginx/proxy_temp--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp--http-scgi-temp-path=/var/cache/nginx/scgi_temp--user=nginx--group=nginx--with-http_realip_module--with-http_addition_module--with-http _sub_module--with-http_dav_module--with-http_flv_module--with-http_mp4_module--with-http_gunzip_module-- With-http_gzip_static_module--with-http_random_index_module--with-http_secure_link_module--with-http_stub_ Status_module--with-http_auth_request_module--with-mail--with-file-aio--with-ipv6--with-http_spdy_module-- with-cc-opt='-o2-g-pipe-wp,-d_fortify_source=2-fexceptions-fstack-protector--param=ssp-buffer-size=4-m64-mtune=generic '--with-http_ssl_module--with-openssl=/root/openssl-1.0. 1j Makemake Install
error message:  while loading shared libraries:libpcre.so. 1 Object  /s libpcre.so. 0.0. 1 libpcre.so. 1
Startup method: Start: Nginx stop: Nginx-s stop Overload: Nginx Reload command to test whether the installation is complete:
Curl http://127.0.0.1

The above proofs appear to have been successfully installed.

Note Other hosts accessing the Nginx server need to open server firewall 80 port

 /etc/init.d/-/etc/init.d/iptables Restart

The installation is successfully accessed directly as follows

Linux cent OS 6.5 installation 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.