Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Linux Nginx installation and configuration instructions     - Linux System Getting Started tutorial: Ubuntu desktop using the command line to change the system proxy settings (Linux)

- Shell Script: create a function and specify a directory for download (Programming)

- GCC and gfortran write MEX program (Matlab2012a) under Ubuntu 14.04 (Programming)

- Configure the ASM process on Red Hat Linux 6.5 (Database)

- MySQL my.cnf sql_mode schema modifications (Database)

- Linux command binlog by filtering out the complete SQL statement (Database)

- Inherent limitations of Linux systems network security (Linux)

- Boost - Memory Management - smart pointers (Programming)

- Linux Task Scheduler (at, crontab) (Linux)

- Linux script to copy the folder to all folders with the same name (Linux)

- To read the Linux ext3 / ext4 format partitions under Windows system software (Linux)

- Preps - Print within the specified range of IP addresses (Linux)

- Java Network Programming Internet address lookup (Programming)

- How to query the role of Linux services (Linux)

- Simple solution CC attack under Linux VPS (Linux)

- The need to avoid a gap of InnoDB lock (Database)

- Linux operating system security management skills notes (Linux)

- High-performance JavaScript loaded and executed (Programming)

- Internal class broadcasting needs public and static (Programming)

- Ubuntu install video conversion tool Selene (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:      
 
- C ++ hash function (Programming)
- Ubuntu 14.04.1 LTS compile and install the new kernel (Linux)
- To install the Contiki development toolchain on Ubuntu (Linux)
- MyCAT read and write separation of MySQL (Database)
- Precautions against hackers Linux environment (Linux)
- Ubuntu under shadowsocks configuration instructions (Linux)
- 10 really interesting Linux command (Linux)
- Delete specific files using bash directory under Linux (Linux)
- Puppet 3.x installed on Debian 7 (Server)
- Linux Systemd-- To start / stop / restart services in RHEL / CentOS 7 (Linux)
- JavaScript object - Flexible and dangerous (Programming)
- Lua and C ++ (Programming)
- To share Internet access through NAT mode under Virtual Linux VMware Workstation (Linux)
- Yii2 Advanced Version Copy New Project Problem Solved (Programming)
- How to upgrade to Ubuntu 14.04 Linux Kernel 4.4.1 LTS (Linux)
- Shell Scripting Basics (Linux)
- Locale files under Ubuntu (Linux)
- MySQL restart process can not be taken lightly (Database)
- Linux install Samba file sharing server (Server)
- Using RAID in Linux: Create a RAID 5 (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.