Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Linux Nginx installation and configuration instructions     - CentOS NAT iptables (Linux)

- namespace mechanism Linux kernel analysis (Linux)

- Shutdown - an advanced shutdown artifact (Linux)

- Automatic Clear date directory shell script (Linux)

- Unable to solve the official version of Android Studio online update problem (Linux)

- PULL operation mechanism parsing XML Comments (Programming)

- JDK tools jstat (Linux)

- To access an Oracle database using Instant Client (Database)

- CentOS / Linux restart active NIC connection paths / network configure error Error Resolution (Linux)

- Use Python automatically cleared Android Engineering excess resources (Programming)

- Linux environment SSH login password instead of using the RSA Certificate (Linux)

- Linux CentOS configuration SVN + SVN hook (Server)

- Linux system security configuration Collection (Linux)

- Linux shell script to adjust the Task Scheduler (Linux)

- PHP 7.0 Upgrade Notes (Linux)

- Teach you how to ensure password security under the Linux operating system (Linux)

- How to use the ftp tool to transfer files between Windows and Linux (Linux)

- CentOS5 installation Nodejs (Linux)

- Android Studio Installation and Configuration Guide tutorial (Linux)

- Simple to use Linux GPG (Linux)

 
         
  Linux Nginx installation and configuration instructions
     
  Add Date : 2017-12-01      
         
       
         
  Nginx is a high-performance HTTP server and reverse proxy, also a IMAP / POP3 / SMTP proxy server. Nginx by Igor Sysoev of Russia visited the second Rambler.ru site development, which has more than two and a half at the site running. Igor the source code to BSD license issued in the form

1, in order to ensure that the use of regular expressions in Nginx a more flexible configuration, prior to installation need to determine whether the system is installed PCRE (Perl Compatible Regular Expressions) package. You can download the latest PCRE to ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ source package, use the following command to download and install PCRE compiled package

I have to download software / software / nginx

Nginx installation requires depends on gcc, openssl-devel, pcre-devel, zlib-devel

1, install openssl

yum install openssl

 2. Download the software Rewrite configuration using pcre

cd / software / nginx

http://jaist.dl.sourceforge.net/project/pcre/pcre/8.32/pcre-8.32.zip

unzip pcre-8.32.zip
 cd pcre-8.32

./configure

make

make install

3, install zlib

cd / software / nginx

wget http://zlib.net/zlib-1.2.7.tar.gz
 tar -zxvf zlib-1.2.7.tar.gz
 cd zlib-1.2.7
 ./configure
 make
 make install

4, Nginx software download

http://nginx.org

Installation and Configuration

./configure -prefix = / usr / local / nginx -with-pcre = / software / nginx / pcre-8.32 -with-http_ssl_module -with-http_stub_status_module -with-http_sub_module

make

make install

Note: -with-pcre = / software / nginx / pcre-8.32 means that the source path pcre-8.32

 
In nginx.conf the server to add:
rewrite_log on;
 error_log logs / rewrite.error.log notice; # can view rewrite is correct

5, start Nginx

/ Usr / local / nginx / sbin / nginx -t # test configuration file is correct

Appear as the right:

/ Usr / local / nginx / sbin / nginx # start Nginx

As the following error:

/ Usr / local / nginx / sbin / nginx: error while loading shared libraries: libpcre.so.1: can not open shared object file: No such file or directory

Solution is as follows:

On RedHat 64-bit machines, pcre file nginx might read is /lib64/libpcre.so.1 file.

ln -s /lib64/libpcre.so.0.0.1 /lib64/libpcre.so.1

ln -s /lib/libpcre.so.0.0.1 /lib/libpcre.so.1
     
         
       
         
  More:      
 
- Ubuntu is expected to allow you to install the latest Nvidia Linux drivers easier (Linux)
- Check with Hello World Docker installation (Server)
- Linux command execution order control and pipeline (Linux)
- Linux firewall Iptables study notes (Linux)
- MySQL 5.6 master-slave replication configuration (Database)
- Smooth upgrade to OpenSSH 6.7 Procedure (Linux)
- Using a proxy method under Linux terminal (Linux)
- OpenSSL to generate public and private key (Linux)
- Java NIO The Glob mode Detailed (Programming)
- JavaScript subarray Deduplication (Programming)
- Jetty JNDI Development combat (Linux)
- Linux kernel socket protocol stack routing lookup cache mechanism (Linux)
- DBCA Error: ORA-19809: limit exceeded for recovery files process (Database)
- Single-node Hadoop environment to build (Server)
- Single Instance ASM under CRS-4124, CRS-4000 error handling (Database)
- Ubuntu install perfectly handsome terminal Guake 0.8.1 (Linux)
- GRUB how to load Linux kernel (Linux)
- Android Delete project useless resource file (Programming)
- Elaborate .NET Multithreading: Concepts (Programming)
- How to download video youtube-dl in Linux (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.