Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Linux Nginx installation and configuration instructions     - Use HttpClient remote interface testing (Programming)

- How to back up Debian system backupninja (Linux)

- Oracle Linux 5.5 (64bit) Install Oracle 11gR2 RAC detailed tutorial (Database)

- To restore the last time applications running when Ubuntu user log in again (Linux)

- Android Action Compendium (Programming)

- Linux set the maximum number of open files nofile and nr_open, file-max Description (Linux)

- Linux keyboard recording script (Linux)

- Compiled version of Android Opus audio codec library method (Programming)

- Default permissions Linux file and directory permissions and hide - umask, chattr, lsattr, SUID, SGID, SBIT, file (Linux)

- SpringMVC garbage processing (Programming)

- How to Install Winusb in Ubuntu 14.04 (Linux)

- Python object-oriented programming (Programming)

- Android developers learning Adapter (data adapter) (Programming)

- MySQL remote connection settings (Database)

- Docker + Nginx + Tomcat7 simple load balancing configuration (Server)

- Differences Shell scripting languages and compiled languages (Programming)

- JIRA 3.6.2 Upgrade from older version to the new version 6.0.8 (Linux)

- Prevent security threats caused Rootkit (Linux)

- Use the DBMS_SCHEDULER package to manage scheduled tasks (Database)

- How to configure FirewallD in RHEL / CentOS 7 and Fedora in (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:      
 
- Oracle common internal event tracking number (Database)
- How to use the Linux terminal Git commands (Linux)
- Customize the output format in Linux history (Linux)
- Ubuntu: To install chat client Chatty 0.6.1 (Linux)
- Linux program analysis tool: ldd and nm (Linux)
- Define and modify strings principle in Python (Programming)
- Oracle 11g modify MEMORY_TARGET (Database)
- Use of the storage-level replication technology will quickly clone a ASM database to the target environment (Database)
- DataGuard a hardware issue warnings found (Database)
- Merge sort Java implementation (Programming)
- The difference between statement and preparedStatement of the jdbc (Database)
- Ubuntu configuration SVN and http mode access (Server)
- 30 minutes with your Quick Start MySQL Tutorial (Database)
- Realize screen recording and playback via Linux command (Linux)
- Linux firewall iptables beginner tutorial (Linux)
- How to Install Suricata IDS on a Linux system (Server)
- New experience Budgie (Budgerigar) desktop environment (Linux)
- When should I use Angular 2 (Programming)
- Oracle 12c detailing the new features (Database)
- Java concurrent programming using the synchronized keyword ReentrantLock alternative primitive (Programming)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.