Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Linux Nginx installation and configuration instructions     - Ubuntu 14.04 configure JDK1.8.0_25, switchable version (Linux)

- AngularJS achieve picture upload feature (Programming)

- Linux with Windows Explorer as a security system (Linux)

- Linux, MySQL / MariaDB Galera Cluster Setup Process (Database)

- Windows7 / 8 / 8.1 hard drive to install Ubuntu 14.04 dual system (Linux)

- Python KNN algorithm of actual realization (Programming)

- CentOS terminal display Chinese (Linux)

- OpenSSL to generate public and private key (Linux)

- To remove those IP is prohibited Fail2ban on CentOS 6/7 (Server)

- Docker study notes (Server)

- ThinkPad X220 Ubuntu 14.10 installed on fingerprint recognition (Linux)

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

- Linux system started to learn: Teaches you install Ubuntu 15.04 on VirtualBox (Linux)

- OpenCV 3.0 + Python 2.7 installation and testing under Ubuntu 14.04 (Linux)

- EXP-00091 Error resolved (Database)

- Linux, security encryption to transfer files between machines (Linux)

- 20 Top Linux commands (Linux)

- Network security system (Network)

- Linux server security - the web server configuration (Linux)

- Java framework for parallel study - ForkJoin (Programming)

 
         
  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:      
 
- MySQL database to open a remote connection method (Database)
- Linux print file and send mail (Linux)
- Talking about the shortcomings and deficiencies of the firewall (Linux)
- Phoenix agents use P2P WebRTC development (Programming)
- IOwait Linux system monitoring diagnostic tools (Linux)
- The Oracle VM VirtualBox use U disk under ubuntu (Linux)
- tar command to extract a file error: stdin has more than one entry (Linux)
- A brief introduction to some important Docker commands (Server)
- Varnish achieve page jump (Server)
- Linux Firewall IPCop Profile (Linux)
- Linux system started to learn: Teaches you install Fedora 22 on VirtualBox (Linux)
- C ++ Fundamentals study notes (Programming)
- Linux System Getting Started Learning: On Linux how to convert text files to PDF (Linux)
- Zabbix system email alert Python script (Server)
- Linux Nginx installation and configuration instructions (Server)
- Ubuntu 15.04 installation Powercommands 2.0 (Linux)
- Java developers question (Programming)
- Linux unpack the tar file to a different directory (Linux)
- Sniffer Linux Environment (Linux)
- About Linux iptables firewall interview questions and answers (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.