Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Linux Nginx installation and configuration instructions     - Vim custom color (Linux)

- Hadoop - Task Scheduling System Comparison (Server)

- What is Java EE (Programming)

- There are three ways to run a Linux operating system from a USB stick (Linux)

- Java threads in the life cycle (Programming)

- Command filter MySQL slow query log (Database)

- Quick paging ROW_NUMBER conducted (Database)

- Sort search algorithm Java - application examples with recursive dichotomy (Programming)

- The new task parallel library feature in .NET 4.6 (Programming)

- Oracle 11g maintenance partitions - Adding Partitions (Database)

- Oracle 11g dataguard main library backup and recovery to the test environment in one database error (Database)

- Android Studio commonly used shortcuts and how to follow the Eclipse Shortcuts (Linux)

- A deep understanding of Java enum (Programming)

- JDK installation and configuration environment variable under linuxb (Linux)

- About AWR More Description (Database)

- MySQL to manage multiple instances of method (Database)

- Simple steps allows you to build a more secure Linux server (Linux)

- Thunderbird 24.4.2 has been released for use with PPA updates (Linux)

- Tomcat session clustering and server session (Server)

- LinSSID: a graphical Wi-Fi scanner under Linux (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


unzip pcre-8.32.zip
 cd pcre-8.32



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
 make install

4, Nginx software download


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 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
- Python 3.5 await / async (Programming)
- GoldenGate update is missing (Database)
- Linux find command detailing (Linux)
- Static member variable modified (Programming)
- Oracle Linux 6.4 installed Oracle 11gR2 + RAC + ASM (Database)
- Six Ways to view slides can be implemented Android (Programming)
- MySQL password on those things you should know (Database)
- ORA-28000 the account is locked fault simulation (Database)
- Linux Firewall Basics (Linux)
- Django1.8 return json json string and the string contents of the received post (Programming)
- stat - Get more information than ls (Linux)
- Linux and Unix systems really do network more secure (Linux)
- Log4cplus logging facility configuration, installation, testing (Linux)
- Ubuntu install video playback software SMPlayer (Linux)
- Batch download files using the explorer under Windows Server 2008 R2 (Server)
- Apple Mac computer to install Windows 10 Concise Guide (Linux)
- HTML5 postMessage cross-domain data exchange (Programming)
- Oracle database on the hit rate of query summary (Database)
- How to modify the SQL Server auto-increment value and the corresponding solution (Database)
- CentOS7 installation performance monitoring system (Server)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.