Linux安装nginx总结

1 安装编译工具及库文件

首先安装必要的编译工具

[root@lsdBKusFRn ~]# yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel
Last metadata expiration check: 2:04:37 ago on Sat 28 May 2022 05:53:34 PM CST.
Package make-1:4.2.1-10.el8.x86_64 is already installed.
Package zlib-1.2.11-17.el8.x86_64 is already installed.
Package openssl-1:1.1.1k-5.el8_5.x86_64 is already installed.
Dependencies resolved.
========================================================================================================================================================================
 Package                                       Architecture                     Version                                       Repository                           Size
========================================================================================================================================================================
Installing:
 gcc-c++                                       x86_64                           8.5.0-4.el8_5                                 AppStream                            12 M
 libtool                                       x86_64                           2.4.6-25.el8                                  AppStream                           709 k
 openssl-devel                                 x86_64                           1:1.1.1k-5.el8_5                              BaseOS                              2.3 M
 zlib-devel                                    x86_64                           1.2.11-17.el8                                 BaseOS                               58 k
Upgrading:
 e2fsprogs                                     x86_64                           1.45.6-2.el8                                  BaseOS                              1.0 M
 e2fsprogs-libs                                x86_64                           1.45.6-2.el8                                  BaseOS                              233 k
 keyutils-libs                                 x86_64                           1.5.10-9.el8                                  BaseOS                               34 k
 krb5-libs                                     x86_64                           1.18.2-14.el8                                 BaseOS                              840 k
 libcom_err                                    x86_64                           1.45.6-2.el8                                  BaseOS                               49 k
 libselinux                                    x86_64                           2.9-5.el8                                     BaseOS                              165 k
 libselinux-utils                              x86_64                           2.9-5.el8                                     BaseOS                              243 k
 libsepol                                      x86_64                           2.9-3.el8                                     BaseOS                              340 k
 libss                                         x86_64                           1.45.6-2.el8                                  BaseOS                               54 k
 libstdc++                                     x86_64                           8.5.0-4.el8_5                                 BaseOS                              453 k
 pcre2                                         x86_64                           10.32-2.el8                                   BaseOS                              246 k
 python3-libselinux                            x86_64                           2.9-5.el8                                     BaseOS                              283 k
Installing dependencies:
 autoconf                                      noarch                           2.69-29.el8                                   AppStream                           710 k
 automake                                      noarch                           1.16.1-7.el8                                  AppStream                           713 k
 keyutils-libs-devel                           x86_64                           1.5.10-9.el8                                  BaseOS                               48 k
 krb5-devel                                    x86_64                           1.18.2-14.el8                                 BaseOS                              560 k
 libcom_err-devel                              x86_64                           1.45.6-2.el8                                  BaseOS                               38 k
 libkadm5                                      x86_64                           1.18.2-14.el8                                 BaseOS                              187 k
 libselinux-devel                              x86_64                           2.9-5.el8                                     BaseOS                              200 k
 libsepol-devel                                x86_64                           2.9-3.el8                                     BaseOS                               87 k
 libstdc++-devel                               x86_64                           8.5.0-4.el8_5                                 AppStream                           2.0 M
 libverto-devel                                x86_64                           0.3.0-5.el8                                   BaseOS                               18 k
 pcre2-devel                                   x86_64                           10.32-2.el8                                   BaseOS                              605 k
 pcre2-utf16                                   x86_64                           10.32-2.el8                                   BaseOS                              229 k
 pcre2-utf32                                   x86_64                           10.32-2.el8                                   BaseOS                              220 k
 perl-Thread-Queue                             noarch                           3.13-1.el8                                    AppStream                            24 k

Transaction Summary
========================================================================================================================================================================
Install  18 Packages
Upgrade  12 Packages

Total download size: 25 M
Downloading Packages:
(1/30): autoconf-2.69-29.el8.noarch.rpm                                                                                                  13 MB/s | 710 kB     00:00    
(2/30): automake-1.16.1-7.el8.noarch.rpm                                                                                                 12 MB/s | 713 kB     00:00    
(3/30): libtool-2.4.6-25.el8.x86_64.rpm                                                                                                  19 MB/s | 709 kB     00:00    
(4/30): perl-Thread-Queue-3.13-1.el8.noarch.rpm                                                                                         2.0 MB/s |  24 kB     00:00    
(5/30): keyutils-libs-devel-1.5.10-9.el8.x86_64.rpm                                                                                     3.6 MB/s |  48 kB     00:00    
(6/30): libstdc++-devel-8.5.0-4.el8_5.x86_64.rpm                                                                                         17 MB/s | 2.0 MB     00:00    
(7/30): libcom_err-devel-1.45.6-2.el8.x86_64.rpm                                                                                        3.6 MB/s |  38 kB     00:00    
(8/30): krb5-devel-1.18.2-14.el8.x86_64.rpm                                                                                             8.0 MB/s | 560 kB     00:00    
(9/30): libselinux-devel-2.9-5.el8.x86_64.rpm                                                                                           9.0 MB/s | 200 kB     00:00    
(10/30): libkadm5-1.18.2-14.el8.x86_64.rpm                                                                                              5.1 MB/s | 187 kB     00:00    
(11/30): libverto-devel-0.3.0-5.el8.x86_64.rpm                                                                                          2.9 MB/s |  18 kB     00:00    
(12/30): libsepol-devel-2.9-3.el8.x86_64.rpm                                                                                            5.5 MB/s |  87 kB     00:00    
(13/30): gcc-c++-8.5.0-4.el8_5.x86_64.rpm                                                                                                30 MB/s |  12 MB     00:00    
(14/30): pcre2-devel-10.32-2.el8.x86_64.rpm                                                                                             3.2 MB/s | 605 kB     00:00    
(15/30): pcre2-utf16-10.32-2.el8.x86_64.rpm                                                                                              13 MB/s | 229 kB     00:00    
(16/30): zlib-devel-1.2.11-17.el8.x86_64.rpm                                                                                             11 MB/s |  58 kB     00:00    
(17/30): pcre2-utf32-10.32-2.el8.x86_64.rpm                                                                                              13 MB/s | 220 kB     00:00    
(18/30): e2fsprogs-libs-1.45.6-2.el8.x86_64.rpm                                                                                          16 MB/s | 233 kB     00:00    
(19/30): keyutils-libs-1.5.10-9.el8.x86_64.rpm                                                                                          6.7 MB/s |  34 kB     00:00    
(20/30): openssl-devel-1.1.1k-5.el8_5.x86_64.rpm                                                                                        9.1 MB/s | 2.3 MB     00:00    
(21/30): libcom_err-1.45.6-2.el8.x86_64.rpm                                                                                             9.3 MB/s |  49 kB     00:00    
(22/30): libselinux-2.9-5.el8.x86_64.rpm                                                                                                 15 MB/s | 165 kB     00:00    
(23/30): e2fsprogs-1.45.6-2.el8.x86_64.rpm                                                                                               12 MB/s | 1.0 MB     00:00    
(24/30): krb5-libs-1.18.2-14.el8.x86_64.rpm                                                                                              11 MB/s | 840 kB     00:00    
(25/30): libss-1.45.6-2.el8.x86_64.rpm                                                                                                   10 MB/s |  54 kB     00:00    
(26/30): libselinux-utils-2.9-5.el8.x86_64.rpm                                                                                          6.5 MB/s | 243 kB     00:00    
(27/30): libsepol-2.9-3.el8.x86_64.rpm                                                                                                   12 MB/s | 340 kB     00:00    
(28/30): libstdc++-8.5.0-4.el8_5.x86_64.rpm                                                                                              20 MB/s | 453 kB     00:00    
(29/30): python3-libselinux-2.9-5.el8.x86_64.rpm                                                                                         17 MB/s | 283 kB     00:00    
(30/30): pcre2-10.32-2.el8.x86_64.rpm                                                                                                    10 MB/s | 246 kB     00:00    
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                    43 MB/s |  25 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                1/1 
  Upgrading        : libcom_err-1.45.6-2.el8.x86_64                                                                                                                1/42 
  Running scriptlet: libcom_err-1.45.6-2.el8.x86_64                                                                                                                1/42 
  Upgrading        : keyutils-libs-1.5.10-9.el8.x86_64                                                                                                             2/42 
  Upgrading        : pcre2-10.32-2.el8.x86_64                                                                                                                      3/42 
  Upgrading        : libsepol-2.9-3.el8.x86_64                                                                                                                     4/42 
  Running scriptlet: libsepol-2.9-3.el8.x86_64                                                                                                                     4/42 
  Upgrading        : libselinux-2.9-5.el8.x86_64                                                                                                                   5/42 
  Running scriptlet: libselinux-2.9-5.el8.x86_64                                                                                                                   5/42 
  Upgrading        : krb5-libs-1.18.2-14.el8.x86_64                                                                                                                6/42 
  Upgrading        : libstdc++-8.5.0-4.el8_5.x86_64                                                                                                                7/42 
  Running scriptlet: libstdc++-8.5.0-4.el8_5.x86_64                                                                                                                7/42 
  Installing       : autoconf-2.69-29.el8.noarch                                                                                                                   8/42 
  Running scriptlet: autoconf-2.69-29.el8.noarch                                                                                                                   8/42 
  Installing       : libstdc++-devel-8.5.0-4.el8_5.x86_64                                                                                                          9/42 
  Installing       : libkadm5-1.18.2-14.el8.x86_64                                                                                                                10/42 
  Installing       : libsepol-devel-2.9-3.el8.x86_64                                                                                                              11/42 
  Installing       : keyutils-libs-devel-1.5.10-9.el8.x86_64                                                                                                      12/42 
  Installing       : libcom_err-devel-1.45.6-2.el8.x86_64                                                                                                         13/42 
  Upgrading        : e2fsprogs-libs-1.45.6-2.el8.x86_64                                                                                                           14/42 
  Running scriptlet: e2fsprogs-libs-1.45.6-2.el8.x86_64                                                                                                           14/42 
  Upgrading        : libss-1.45.6-2.el8.x86_64                                                                                                                    15/42 
  Running scriptlet: libss-1.45.6-2.el8.x86_64                                                                                                                    15/42 
  Installing       : zlib-devel-1.2.11-17.el8.x86_64                                                                                                              16/42 
  Installing       : pcre2-utf32-10.32-2.el8.x86_64                                                                                                               17/42 
  Installing       : pcre2-utf16-10.32-2.el8.x86_64                                                                                                               18/42 
  Installing       : pcre2-devel-10.32-2.el8.x86_64                                                                                                               19/42 
  Installing       : libselinux-devel-2.9-5.el8.x86_64                                                                                                            20/42 
  Installing       : libverto-devel-0.3.0-5.el8.x86_64                                                                                                            21/42 
  Installing       : krb5-devel-1.18.2-14.el8.x86_64                                                                                                              22/42 
  Installing       : perl-Thread-Queue-3.13-1.el8.noarch                                                                                                          23/42 
  Installing       : automake-1.16.1-7.el8.noarch                                                                                                                 24/42 
  Installing       : libtool-2.4.6-25.el8.x86_64                                                                                                                  25/42 
  Running scriptlet: libtool-2.4.6-25.el8.x86_64                                                                                                                  25/42 
  Installing       : openssl-devel-1:1.1.1k-5.el8_5.x86_64                                                                                                        26/42 
  Upgrading        : e2fsprogs-1.45.6-2.el8.x86_64                                                                                                                27/42 
  Installing       : gcc-c++-8.5.0-4.el8_5.x86_64                                                                                                                 28/42 
  Upgrading        : libselinux-utils-2.9-5.el8.x86_64                                                                                                            29/42 
  Upgrading        : python3-libselinux-2.9-5.el8.x86_64                                                                                                          30/42 
  Cleanup          : krb5-libs-1.17-18.el8.x86_64                                                                                                                 31/42 
  Cleanup          : e2fsprogs-1.45.4-3.el8.x86_64                                                                                                                32/42 
  Cleanup          : libselinux-utils-2.9-3.el8.x86_64                                                                                                            33/42 
  Cleanup          : e2fsprogs-libs-1.45.4-3.el8.x86_64                                                                                                           34/42 
  Running scriptlet: e2fsprogs-libs-1.45.4-3.el8.x86_64                                                                                                           34/42 
  Cleanup          : libss-1.45.4-3.el8.x86_64                                                                                                                    35/42 
  Running scriptlet: libss-1.45.4-3.el8.x86_64                                                                                                                    35/42 
  Cleanup          : python3-libselinux-2.9-3.el8.x86_64                                                                                                          36/42 
  Cleanup          : libselinux-2.9-3.el8.x86_64                                                                                                                  37/42 
  Cleanup          : pcre2-10.32-1.el8.x86_64                                                                                                                     38/42 
  Cleanup          : libsepol-2.9-1.el8.x86_64                                                                                                                    39/42 
  Running scriptlet: libsepol-2.9-1.el8.x86_64                                                                                                                    39/42 
  Cleanup          : libcom_err-1.45.4-3.el8.x86_64                                                                                                               40/42 
  Running scriptlet: libcom_err-1.45.4-3.el8.x86_64                                                                                                               40/42 
  Cleanup          : keyutils-libs-1.5.10-6.el8.x86_64                                                                                                            41/42 
  Cleanup          : libstdc++-8.3.1-5.el8.0.2.x86_64                                                                                                             42/42 
  Running scriptlet: libstdc++-8.3.1-5.el8.0.2.x86_64                                                                                                             42/42 
[/usr/lib/tmpfiles.d/mysql.conf:23] Line references path below legacy directory /var/run/, updating /var/run/mysqld → /run/mysqld; please update the tmpfiles.d/ drop-in file accordingly.

  Verifying        : autoconf-2.69-29.el8.noarch                                                                                                                   1/42 
  Verifying        : automake-1.16.1-7.el8.noarch                                                                                                                  2/42 
  Verifying        : gcc-c++-8.5.0-4.el8_5.x86_64                                                                                                                  3/42 
  Verifying        : libstdc++-devel-8.5.0-4.el8_5.x86_64                                                                                                          4/42 
  Verifying        : libtool-2.4.6-25.el8.x86_64                                                                                                                   5/42 
  Verifying        : perl-Thread-Queue-3.13-1.el8.noarch                                                                                                           6/42 
  Verifying        : keyutils-libs-devel-1.5.10-9.el8.x86_64                                                                                                       7/42 
  Verifying        : krb5-devel-1.18.2-14.el8.x86_64                                                                                                               8/42 
  Verifying        : libcom_err-devel-1.45.6-2.el8.x86_64                                                                                                          9/42 
  Verifying        : libkadm5-1.18.2-14.el8.x86_64                                                                                                                10/42 
  Verifying        : libselinux-devel-2.9-5.el8.x86_64                                                                                                            11/42 
  Verifying        : libsepol-devel-2.9-3.el8.x86_64                                                                                                              12/42 
  Verifying        : libverto-devel-0.3.0-5.el8.x86_64                                                                                                            13/42 
  Verifying        : openssl-devel-1:1.1.1k-5.el8_5.x86_64                                                                                                        14/42 
  Verifying        : pcre2-devel-10.32-2.el8.x86_64                                                                                                               15/42 
  Verifying        : pcre2-utf16-10.32-2.el8.x86_64                                                                                                               16/42 
  Verifying        : pcre2-utf32-10.32-2.el8.x86_64                                                                                                               17/42 
  Verifying        : zlib-devel-1.2.11-17.el8.x86_64                                                                                                              18/42 
  Verifying        : e2fsprogs-1.45.6-2.el8.x86_64                                                                                                                19/42 
  Verifying        : e2fsprogs-1.45.4-3.el8.x86_64                                                                                                                20/42 
  Verifying        : e2fsprogs-libs-1.45.6-2.el8.x86_64                                                                                                           21/42 
  Verifying        : e2fsprogs-libs-1.45.4-3.el8.x86_64                                                                                                           22/42 
  Verifying        : keyutils-libs-1.5.10-9.el8.x86_64                                                                                                            23/42 
  Verifying        : keyutils-libs-1.5.10-6.el8.x86_64                                                                                                            24/42 
  Verifying        : krb5-libs-1.18.2-14.el8.x86_64                                                                                                               25/42 
  Verifying        : krb5-libs-1.17-18.el8.x86_64                                                                                                                 26/42 
  Verifying        : libcom_err-1.45.6-2.el8.x86_64                                                                                                               27/42 
  Verifying        : libcom_err-1.45.4-3.el8.x86_64                                                                                                               28/42 
  Verifying        : libselinux-2.9-5.el8.x86_64                                                                                                                  29/42 
  Verifying        : libselinux-2.9-3.el8.x86_64                                                                                                                  30/42 
  Verifying        : libselinux-utils-2.9-5.el8.x86_64                                                                                                            31/42 
  Verifying        : libselinux-utils-2.9-3.el8.x86_64                                                                                                            32/42 
  Verifying        : libsepol-2.9-3.el8.x86_64                                                                                                                    33/42 
  Verifying        : libsepol-2.9-1.el8.x86_64                                                                                                                    34/42 
  Verifying        : libss-1.45.6-2.el8.x86_64                                                                                                                    35/42 
  Verifying        : libss-1.45.4-3.el8.x86_64                                                                                                                    36/42 
  Verifying        : libstdc++-8.5.0-4.el8_5.x86_64                                                                                                               37/42 
  Verifying        : libstdc++-8.3.1-5.el8.0.2.x86_64                                                                                                             38/42 
  Verifying        : pcre2-10.32-2.el8.x86_64                                                                                                                     39/42 
  Verifying        : pcre2-10.32-1.el8.x86_64                                                                                                                     40/42 
  Verifying        : python3-libselinux-2.9-5.el8.x86_64                                                                                                          41/42 
  Verifying        : python3-libselinux-2.9-3.el8.x86_64                                                                                                          42/42 

Upgraded:
  e2fsprogs-1.45.6-2.el8.x86_64  e2fsprogs-libs-1.45.6-2.el8.x86_64   keyutils-libs-1.5.10-9.el8.x86_64  krb5-libs-1.18.2-14.el8.x86_64  libcom_err-1.45.6-2.el8.x86_64 
  libselinux-2.9-5.el8.x86_64    libselinux-utils-2.9-5.el8.x86_64    libsepol-2.9-3.el8.x86_64          libss-1.45.6-2.el8.x86_64       libstdc++-8.5.0-4.el8_5.x86_64 
  pcre2-10.32-2.el8.x86_64       python3-libselinux-2.9-5.el8.x86_64 
Installed:
  autoconf-2.69-29.el8.noarch                automake-1.16.1-7.el8.noarch              gcc-c++-8.5.0-4.el8_5.x86_64        keyutils-libs-devel-1.5.10-9.el8.x86_64     
  krb5-devel-1.18.2-14.el8.x86_64            libcom_err-devel-1.45.6-2.el8.x86_64      libkadm5-1.18.2-14.el8.x86_64       libselinux-devel-2.9-5.el8.x86_64           
  libsepol-devel-2.9-3.el8.x86_64            libstdc++-devel-8.5.0-4.el8_5.x86_64      libtool-2.4.6-25.el8.x86_64         libverto-devel-0.3.0-5.el8.x86_64           
  openssl-devel-1:1.1.1k-5.el8_5.x86_64      pcre2-devel-10.32-2.el8.x86_64            pcre2-utf16-10.32-2.el8.x86_64      pcre2-utf32-10.32-2.el8.x86_64              
  perl-Thread-Queue-3.13-1.el8.noarch        zlib-devel-1.2.11-17.el8.x86_64          

Complete!

2 安装PCRE

下载PCRE安装包

[root@lsdBKusFRn ~]# cd /usr/local/src/
[root@lsdBKusFRn src]# ll
total 0
[root@lsdBKusFRn src]# ll
total 0
[root@lsdBKusFRn src]# wget http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
--2022-05-28 20:00:16--  http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 204.68.111.105
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|204.68.111.105|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://nchc.dl.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz [following]
--2022-05-28 20:00:18--  http://nchc.dl.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
Resolving nchc.dl.sourceforge.net (nchc.dl.sourceforge.net)... 140.110.96.69, 2001:e10:ffff:1f02::17
Connecting to nchc.dl.sourceforge.net (nchc.dl.sourceforge.net)|140.110.96.69|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1996552 (1.9M) [application/x-gzip]
Saving to: ‘pcre-8.35.tar.gz’

pcre-8.35.tar.gz                          100%[=====================================================================================>]   1.90M  44.6KB/s    in 60s      

2022-05-28 20:01:18 (32.6 KB/s) - ‘pcre-8.35.tar.gz’ saved [1996552/1996552]

解压PCRE安装包

[root@lsdBKusFRn src]# tar zxvf pcre-8.35.tar.gz
pcre-8.35/
pcre-8.35/pcre_scanner.h
pcre-8.35/LICENCE
pcre-8.35/makevp_c.txt
pcre-8.35/PrepareRelease
pcre-8.35/RunTest.bat
pcre-8.35/pcre16_study.c
pcre-8.35/pcre16_chartables.c
pcre-8.35/pcre_jit_test.c
pcre-8.35/pcregexp.pas
pcre-8.35/pcre32_chartables.c
pcre-8.35/pcre_get.c
pcre-8.35/132html
pcre-8.35/pcre16_compile.c
pcre-8.35/pcre32_dfa_exec.c
pcre-8.35/pcre32_utf32_utils.c
pcre-8.35/CMakeLists.txt
pcre-8.35/Makefile.am
pcre-8.35/pcre_stringpiece_unittest.cc
pcre-8.35/pcre16_dfa_exec.c
pcre-8.35/pcre16_newline.c
pcre-8.35/pcre16_ord2utf16.c
pcre-8.35/compile
pcre-8.35/pcre16_config.c
pcre-8.35/depcomp
pcre-8.35/config.sub
pcre-8.35/pcre32_maketables.c
pcre-8.35/pcre16_maketables.c
pcre-8.35/pcre16_byte_order.c
pcre-8.35/pcrecpp.cc
pcre-8.35/Makefile.in
pcre-8.35/README
pcre-8.35/cmake/
pcre-8.35/cmake/FindReadline.cmake
pcre-8.35/cmake/FindEditline.cmake
pcre-8.35/cmake/FindPackageHandleStandardArgs.cmake
pcre-8.35/cmake/COPYING-CMAKE-SCRIPTS
pcre-8.35/pcre16_utf16_utils.c
pcre-8.35/aclocal.m4
pcre-8.35/pcre32_xclass.c
pcre-8.35/ucp.h
pcre-8.35/pcre_printint.c
pcre-8.35/pcre32_compile.c
pcre-8.35/pcre_jit_compile.c
pcre-8.35/dftables.c
pcre-8.35/config.guess
pcre-8.35/pcre_newline.c
pcre-8.35/configure
pcre-8.35/pcrecpparg.h.in
pcre-8.35/perltest.pl
pcre-8.35/pcre16_jit_compile.c
pcre-8.35/pcre32_exec.c
pcre-8.35/pcre32_study.c
pcre-8.35/pcreposix.h
pcre-8.35/CleanTxt
pcre-8.35/pcreposix.c
pcre-8.35/pcre_string_utils.c
pcre-8.35/pcre32_newline.c
pcre-8.35/install-sh
pcre-8.35/pcre16_xclass.c
pcre-8.35/libpcre16.pc.in
pcre-8.35/pcre16_get.c
pcre-8.35/pcrecpp_internal.h
pcre-8.35/pcre_study.c
pcre-8.35/pcre_compile.c
pcre-8.35/pcre_fullinfo.c
pcre-8.35/pcre_refcount.c
pcre-8.35/pcre16_globals.c
pcre-8.35/m4/
pcre-8.35/m4/ltsugar.m4
pcre-8.35/m4/libtool.m4
pcre-8.35/m4/ltversion.m4
pcre-8.35/m4/ltoptions.m4
pcre-8.35/m4/ax_pthread.m4
pcre-8.35/m4/lt~obsolete.m4
pcre-8.35/m4/pcre_visibility.m4
pcre-8.35/libpcreposix.pc.in
pcre-8.35/COPYING
pcre-8.35/pcrecpp.h
pcre-8.35/INSTALL
pcre-8.35/pcre32_fullinfo.c
pcre-8.35/pcre32_get.c
pcre-8.35/pcre32_tables.c
pcre-8.35/libpcre32.pc.in
pcre-8.35/pcre32_valid_utf32.c
pcre-8.35/pcre_ord2utf8.c
pcre-8.35/makevp.bat
pcre-8.35/ChangeLog
pcre-8.35/pcre32_string_utils.c
pcre-8.35/pcre-config.in
pcre-8.35/pcre_exec.c
pcre-8.35/pcre16_refcount.c
pcre-8.35/HACKING
pcre-8.35/test-driver
pcre-8.35/missing
pcre-8.35/pcre16_string_utils.c
pcre-8.35/configure.ac
pcre-8.35/pcre_scanner.cc
pcre-8.35/pcre_stringpiece.h.in
pcre-8.35/ar-lib
pcre-8.35/pcre_valid_utf8.c
pcre-8.35/sljit/
pcre-8.35/sljit/sljitNativeSPARC_common.c
pcre-8.35/sljit/sljitNativeTILEGX-encoder.c
pcre-8.35/sljit/sljitConfig.h
pcre-8.35/sljit/sljitNativeMIPS_64.c
pcre-8.35/sljit/sljitUtils.c
pcre-8.35/sljit/sljitNativeARM_T2_32.c
pcre-8.35/sljit/sljitNativePPC_64.c
pcre-8.35/sljit/sljitNativeARM_64.c
pcre-8.35/sljit/sljitNativeMIPS_common.c
pcre-8.35/sljit/sljitNativeMIPS_32.c
pcre-8.35/sljit/sljitNativeX86_common.c
pcre-8.35/sljit/sljitNativeTILEGX_64.c
pcre-8.35/sljit/sljitNativeARM_32.c
pcre-8.35/sljit/sljitNativeSPARC_32.c
pcre-8.35/sljit/sljitLir.c
pcre-8.35/sljit/sljitLir.h
pcre-8.35/sljit/sljitNativeX86_32.c
pcre-8.35/sljit/sljitNativePPC_32.c
pcre-8.35/sljit/sljitExecAllocator.c
pcre-8.35/sljit/sljitNativeX86_64.c
pcre-8.35/sljit/sljitNativePPC_common.c
pcre-8.35/sljit/sljitConfigInternal.h
pcre-8.35/pcre16_tables.c
pcre-8.35/pcre32_byte_order.c
pcre-8.35/config-cmake.h.in
pcre-8.35/pcretest.c
pcre-8.35/testdata/
pcre-8.35/testdata/saved32LE-1
pcre-8.35/testdata/testoutput24
pcre-8.35/testdata/testoutput2
pcre-8.35/testdata/testoutputEBC
pcre-8.35/testdata/greplist
pcre-8.35/testdata/testinput21
pcre-8.35/testdata/testinput25
pcre-8.35/testdata/testoutput3A
pcre-8.35/testdata/testoutput26
pcre-8.35/testdata/testoutput20
pcre-8.35/testdata/grepoutput8
pcre-8.35/testdata/testoutput16
pcre-8.35/testdata/testinput17
pcre-8.35/testdata/testoutput23
pcre-8.35/testdata/testoutput4
pcre-8.35/testdata/testoutput11-8
pcre-8.35/testdata/testinput8
pcre-8.35/testdata/testinput26
pcre-8.35/testdata/testoutput7
pcre-8.35/testdata/grepinput3
pcre-8.35/testdata/testoutput22-32
pcre-8.35/testdata/testinput13
pcre-8.35/testdata/testoutput12
pcre-8.35/testdata/saved32
pcre-8.35/testdata/testinput15
pcre-8.35/testdata/wintestoutput3
pcre-8.35/testdata/testinput10
pcre-8.35/testdata/testinput1
pcre-8.35/testdata/testoutput5
pcre-8.35/testdata/saved16
pcre-8.35/testdata/grepoutputN
pcre-8.35/testdata/testinput24
pcre-8.35/testdata/testoutput9
pcre-8.35/testdata/testoutput14
pcre-8.35/testdata/testoutput10
pcre-8.35/testdata/testinput16
pcre-8.35/testdata/testoutput21-32
pcre-8.35/testdata/testoutput25
pcre-8.35/testdata/testoutput3B
pcre-8.35/testdata/testoutput15
pcre-8.35/testdata/testoutput13
pcre-8.35/testdata/testoutput18-32
pcre-8.35/testdata/grepbinary
pcre-8.35/testdata/grepinputx
pcre-8.35/testdata/testoutput18-16
pcre-8.35/testdata/greppatN4
pcre-8.35/testdata/testinput5
pcre-8.35/testdata/testoutput19
pcre-8.35/testdata/testoutput6
pcre-8.35/testdata/testinput3
pcre-8.35/testdata/testinput23
pcre-8.35/testdata/testinput7
pcre-8.35/testdata/testinput18
pcre-8.35/testdata/saved32BE-1
pcre-8.35/testdata/saved32BE-2
pcre-8.35/testdata/testoutput3
pcre-8.35/testdata/testinput22
pcre-8.35/testdata/saved16BE-2
pcre-8.35/testdata/testinput9
pcre-8.35/testdata/saved8
pcre-8.35/testdata/testinput20
pcre-8.35/testdata/testinput6
pcre-8.35/testdata/saved16LE-1
pcre-8.35/testdata/saved16LE-2
pcre-8.35/testdata/testoutput8
pcre-8.35/testdata/testinput12
pcre-8.35/testdata/grepinput8
pcre-8.35/testdata/grepfilelist
pcre-8.35/testdata/testinput2
pcre-8.35/testdata/grepinputv
pcre-8.35/testdata/grepoutput
pcre-8.35/testdata/saved16BE-1
pcre-8.35/testdata/testinput11
pcre-8.35/testdata/testinput4
pcre-8.35/testdata/saved32LE-2
pcre-8.35/testdata/grepinput
pcre-8.35/testdata/testoutput21-16
pcre-8.35/testdata/wintestinput3
pcre-8.35/testdata/testinputEBC
pcre-8.35/testdata/testinput14
pcre-8.35/testdata/testoutput22-16
pcre-8.35/testdata/testoutput11-32
pcre-8.35/testdata/testoutput1
pcre-8.35/testdata/testinput19
pcre-8.35/testdata/testoutput11-16
pcre-8.35/testdata/testoutput17
pcre-8.35/pcre32_config.c
pcre-8.35/RunTest
pcre-8.35/pcregrep.c
pcre-8.35/pcrecpp_unittest.cc
pcre-8.35/pcre_dfa_exec.c
pcre-8.35/pcre_globals.c
pcre-8.35/pcre32_ord2utf32.c
pcre-8.35/pcre_xclass.c
pcre-8.35/config.h.in
pcre-8.35/pcre_internal.h
pcre-8.35/pcre32_refcount.c
pcre-8.35/pcre16_ucd.c
pcre-8.35/pcre32_jit_compile.c
pcre-8.35/pcre_ucd.c
pcre-8.35/AUTHORS
pcre-8.35/Detrail
pcre-8.35/pcre16_version.c
pcre-8.35/NON-AUTOTOOLS-BUILD
pcre-8.35/ltmain.sh
pcre-8.35/pcre_scanner_unittest.cc
pcre-8.35/pcre32_printint.c
pcre-8.35/pcre16_printint.c
pcre-8.35/NEWS
pcre-8.35/pcre32_version.c
pcre-8.35/pcre.h.in
pcre-8.35/libpcrecpp.pc.in
pcre-8.35/pcre_chartables.c.dist
pcre-8.35/pcre.h.generic
pcre-8.35/doc/
pcre-8.35/doc/pcre.txt
pcre-8.35/doc/pcre_fullinfo.3
pcre-8.35/doc/pcre_jit_exec.3
pcre-8.35/doc/pcre_version.3
pcre-8.35/doc/pcre_assign_jit_stack.3
pcre-8.35/doc/pcre_compile2.3
pcre-8.35/doc/pcretest.txt
pcre-8.35/doc/pcre-config.txt
pcre-8.35/doc/pcre_get_substring_list.3
pcre-8.35/doc/pcrematching.3
pcre-8.35/doc/pcre_copy_named_substring.3
pcre-8.35/doc/pcresample.3
pcre-8.35/doc/pcre_free_substring_list.3
pcre-8.35/doc/pcreprecompile.3
pcre-8.35/doc/pcre_utf32_to_host_byte_order.3
pcre-8.35/doc/pcre_config.3
pcre-8.35/doc/pcresyntax.3
pcre-8.35/doc/pcreapi.3
pcre-8.35/doc/pcre_pattern_to_host_byte_order.3
pcre-8.35/doc/pcrecallout.3
pcre-8.35/doc/pcregrep.1
pcre-8.35/doc/html/
pcre-8.35/doc/html/pcre_maketables.html
pcre-8.35/doc/html/pcre-config.html
pcre-8.35/doc/html/pcre_get_stringtable_entries.html
pcre-8.35/doc/html/index.html
pcre-8.35/doc/html/pcre_pattern_to_host_byte_order.html
pcre-8.35/doc/html/pcreperform.html
pcre-8.35/doc/html/pcre_get_substring_list.html
pcre-8.35/doc/html/pcreposix.html
pcre-8.35/doc/html/pcre_free_study.html
pcre-8.35/doc/html/pcrecpp.html
pcre-8.35/doc/html/pcrecompat.html
pcre-8.35/doc/html/pcre_compile.html
pcre-8.35/doc/html/pcre_config.html
pcre-8.35/doc/html/pcre_get_named_substring.html
pcre-8.35/doc/html/pcretest.html
pcre-8.35/doc/html/pcre_compile2.html
pcre-8.35/doc/html/pcre_version.html
pcre-8.35/doc/html/pcrestack.html
pcre-8.35/doc/html/pcre_copy_named_substring.html
pcre-8.35/doc/html/pcre_utf32_to_host_byte_order.html
pcre-8.35/doc/html/pcre16.html
pcre-8.35/doc/html/pcre_jit_stack_alloc.html
pcre-8.35/doc/html/pcre_utf16_to_host_byte_order.html
pcre-8.35/doc/html/pcre_jit_stack_free.html
pcre-8.35/doc/html/pcrecallout.html
pcre-8.35/doc/html/pcre.html
pcre-8.35/doc/html/pcre_refcount.html
pcre-8.35/doc/html/pcrepattern.html
pcre-8.35/doc/html/pcreprecompile.html
pcre-8.35/doc/html/pcre_get_stringnumber.html
pcre-8.35/doc/html/pcresample.html
pcre-8.35/doc/html/pcre_exec.html
pcre-8.35/doc/html/pcre_assign_jit_stack.html
pcre-8.35/doc/html/README.txt
pcre-8.35/doc/html/pcre_copy_substring.html
pcre-8.35/doc/html/pcre_get_substring.html
pcre-8.35/doc/html/pcrejit.html
pcre-8.35/doc/html/pcreunicode.html
pcre-8.35/doc/html/pcrelimits.html
pcre-8.35/doc/html/pcre_fullinfo.html
pcre-8.35/doc/html/NON-AUTOTOOLS-BUILD.txt
pcre-8.35/doc/html/pcrebuild.html
pcre-8.35/doc/html/pcreapi.html
pcre-8.35/doc/html/pcre_study.html
pcre-8.35/doc/html/pcre_jit_exec.html
pcre-8.35/doc/html/pcrepartial.html
pcre-8.35/doc/html/pcregrep.html
pcre-8.35/doc/html/pcresyntax.html
pcre-8.35/doc/html/pcre_free_substring.html
pcre-8.35/doc/html/pcre_free_substring_list.html
pcre-8.35/doc/html/pcre32.html
pcre-8.35/doc/html/pcredemo.html
pcre-8.35/doc/html/pcre_dfa_exec.html
pcre-8.35/doc/html/pcrematching.html
pcre-8.35/doc/pcreperform.3
pcre-8.35/doc/pcre_compile.3
pcre-8.35/doc/pcre_get_stringnumber.3
pcre-8.35/doc/index.html.src
pcre-8.35/doc/pcre_free_substring.3
pcre-8.35/doc/pcre_maketables.3
pcre-8.35/doc/pcre_jit_stack_free.3
pcre-8.35/doc/pcre_get_substring.3
pcre-8.35/doc/pcre16.3
pcre-8.35/doc/pcre32.3
pcre-8.35/doc/pcre_get_named_substring.3
pcre-8.35/doc/pcre_exec.3
pcre-8.35/doc/pcre_get_stringtable_entries.3
pcre-8.35/doc/pcre.3
pcre-8.35/doc/pcre-config.1
pcre-8.35/doc/pcrecompat.3
pcre-8.35/doc/pcrestack.3
pcre-8.35/doc/pcre_dfa_exec.3
pcre-8.35/doc/perltest.txt
pcre-8.35/doc/pcreunicode.3
pcre-8.35/doc/pcre_study.3
pcre-8.35/doc/pcreposix.3
pcre-8.35/doc/pcrepartial.3
pcre-8.35/doc/pcrelimits.3
pcre-8.35/doc/pcredemo.3
pcre-8.35/doc/pcretest.1
pcre-8.35/doc/pcre_refcount.3
pcre-8.35/doc/pcrepattern.3
pcre-8.35/doc/pcre_utf16_to_host_byte_order.3
pcre-8.35/doc/pcrejit.3
pcre-8.35/doc/pcrecpp.3
pcre-8.35/doc/pcre_jit_stack_alloc.3
pcre-8.35/doc/pcrebuild.3
pcre-8.35/doc/pcre_free_study.3
pcre-8.35/doc/pcregrep.txt
pcre-8.35/doc/pcre_copy_substring.3
pcre-8.35/NON-UNIX-USE
pcre-8.35/pcre_byte_order.c
pcre-8.35/pcredemo.c
pcre-8.35/libpcre.pc.in
pcre-8.35/pcre16_fullinfo.c
pcre-8.35/RunGrepTest
pcre-8.35/pcre16_exec.c
pcre-8.35/pcre_maketables.c
pcre-8.35/pcre_tables.c
pcre-8.35/config.h.generic
pcre-8.35/pcre_stringpiece.cc
pcre-8.35/pcre_version.c
pcre-8.35/CheckMan
pcre-8.35/pcre32_globals.c
pcre-8.35/pcre_config.c
pcre-8.35/pcre16_valid_utf16.c
pcre-8.35/pcre32_ucd.c
pcre-8.35/makevp_l.txt

编译安装PCRE

[root@lsdBKusFRn src]# cd pcre-8.35/
[root@lsdBKusFRn pcre-8.35]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int64_t... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether ln -s works... yes
checking whether the -Werror option is usable... yes
checking for simple visibility declarations... yes
checking for ANSI C header files... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for alias support in the linker... no
checking for alias support in the linker... no
checking string usability... yes
checking string presence... yes
checking for string... yes
checking bits/type_traits.h usability... no
checking bits/type_traits.h presence... no
checking for bits/type_traits.h... no
checking type_traits.h usability... no
checking type_traits.h presence... no
checking for type_traits.h... no
checking for strtoq... yes
checking for long long... yes
checking for unsigned long long... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for bcopy... yes
checking for memmove... yes
checking for strerror... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzopen in -lz... yes
checking bzlib.h usability... no
checking bzlib.h presence... no
checking for bzlib.h... no
checking for libbz2... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libpcre.pc
config.status: creating libpcre16.pc
config.status: creating libpcre32.pc
config.status: creating libpcreposix.pc
config.status: creating libpcrecpp.pc
config.status: creating pcre-config
config.status: creating pcre.h
config.status: creating pcre_stringpiece.h
config.status: creating pcrecpparg.h
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing script-chmod commands
config.status: executing delete-old-chartables commands

pcre-8.35 configuration summary:

    Install prefix .................. : /usr/local
    C preprocessor .................. : gcc -E
    C compiler ...................... : gcc
    C++ preprocessor ................ : g++ -E
    C++ compiler .................... : g++
    Linker .......................... : /usr/bin/ld -m elf_x86_64
    C preprocessor flags ............ : 
    C compiler flags ................ : -g -O2 -fvisibility=hidden
    C++ compiler flags .............. : -O2 -fvisibility=hidden -fvisibility-inlines-hidden
    Linker flags .................... : 
    Extra libraries ................. : 

    Build 8 bit pcre library ........ : yes
    Build 16 bit pcre library ....... : no
    Build 32 bit pcre library ....... : no
    Build C++ library ............... : yes
    Enable JIT compiling support .... : no
    Enable UTF-8/16/32 support ...... : no
    Unicode properties .............. : no
    Newline char/sequence ........... : lf
    \R matches only ANYCRLF ......... : no
    EBCDIC coding ................... : no
    EBCDIC code for NL .............. : n/a
    Rebuild char tables ............. : no
    Use stack recursion ............. : yes
    POSIX mem threshold ............. : 10
    Internal link size .............. : 2
    Nested parentheses limit ........ : 250
    Match limit ..................... : 10000000
    Match limit recursion ........... : MATCH_LIMIT
    Build shared libs ............... : yes
    Build static libs ............... : yes
    Use JIT in pcregrep ............. : no
    Buffer size for pcregrep ........ : 20480
    Link pcregrep with libz ......... : no
    Link pcregrep with libbz2 ....... : no
    Link pcretest with libedit ...... : no
    Link pcretest with libreadline .. : no
    Valgrind support ................ : no
    Code coverage ................... : no

[root@lsdBKusFRn pcre-8.35]#  make && make install
rm -f pcre_chartables.c
ln -s ./pcre_chartables.c.dist pcre_chartables.c
make  all-am
make[1]: Entering directory '/usr/local/src/pcre-8.35'
  CC       libpcre_la-pcre_byte_order.lo
  CC       libpcre_la-pcre_compile.lo
  CC       libpcre_la-pcre_config.lo
  CC       libpcre_la-pcre_dfa_exec.lo
  CC       libpcre_la-pcre_exec.lo
  CC       libpcre_la-pcre_fullinfo.lo
  CC       libpcre_la-pcre_get.lo
   CC       libpcre_la-pcre_globals.lo
  CC       libpcre_la-pcre_jit_compile.lo
  CC       libpcre_la-pcre_maketables.lo
  CC       libpcre_la-pcre_newline.lo
  CC       libpcre_la-pcre_ord2utf8.lo
  CC       libpcre_la-pcre_refcount.lo
  CC       libpcre_la-pcre_string_utils.lo
  CC       libpcre_la-pcre_study.lo
  CC       libpcre_la-pcre_tables.lo
  CC       libpcre_la-pcre_ucd.lo
  CC       libpcre_la-pcre_valid_utf8.lo
  CC       libpcre_la-pcre_version.lo
  CC       libpcre_la-pcre_xclass.lo
  CC       libpcre_la-pcre_chartables.lo
  CCLD     libpcre.la
  CC       libpcreposix_la-pcreposix.lo
  CCLD     libpcreposix.la
  CXX      libpcrecpp_la-pcrecpp.lo
  CXX      libpcrecpp_la-pcre_scanner.lo
  CXX      libpcrecpp_la-pcre_stringpiece.lo
  CXXLD    libpcrecpp.la
  CC       pcretest-pcretest.o
  CC       pcretest-pcre_printint.o
  CCLD     pcretest
  CC       pcregrep-pcregrep.o
  CCLD     pcregrep
  CXX      pcrecpp_unittest-pcrecpp_unittest.o
  CXXLD    pcrecpp_unittest
  CXX      pcre_scanner_unittest-pcre_scanner_unittest.o
  CXXLD    pcre_scanner_unittest
  CXX      pcre_stringpiece_unittest-pcre_stringpiece_unittest.o
  CXXLD    pcre_stringpiece_unittest
make[1]: Leaving directory '/usr/local/src/pcre-8.35'
make  install-am
make[1]: Entering directory '/usr/local/src/pcre-8.35'
make[2]: Entering directory '/usr/local/src/pcre-8.35'
 /usr/bin/mkdir -p '/usr/local/lib'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   libpcre.la libpcreposix.la libpcrecpp.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libpcre.so.1.2.3 /usr/local/lib/libpcre.so.1.2.3
libtool: install: (cd /usr/local/lib && { ln -s -f libpcre.so.1.2.3 libpcre.so.1 || { rm -f libpcre.so.1 && ln -s libpcre.so.1.2.3 libpcre.so.1; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libpcre.so.1.2.3 libpcre.so || { rm -f libpcre.so && ln -s libpcre.so.1.2.3 libpcre.so; }; })
libtool: install: /usr/bin/install -c .libs/libpcre.lai /usr/local/lib/libpcre.la
libtool: install: warning: relinking `libpcreposix.la'
libtool: install: (cd /usr/local/src/pcre-8.35; /bin/sh /usr/local/src/pcre-8.35/libtool  --silent --tag CC --mode=relink gcc -fvisibility=hidden -g -O2 -version-info 0:2:0 -o libpcreposix.la -rpath /usr/local/lib libpcreposix_la-pcreposix.lo libpcre.la )
libtool: install: /usr/bin/install -c .libs/libpcreposix.so.0.0.2T /usr/local/lib/libpcreposix.so.0.0.2
libtool: install: (cd /usr/local/lib && { ln -s -f libpcreposix.so.0.0.2 libpcreposix.so.0 || { rm -f libpcreposix.so.0 && ln -s libpcreposix.so.0.0.2 libpcreposix.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libpcreposix.so.0.0.2 libpcreposix.so || { rm -f libpcreposix.so && ln -s libpcreposix.so.0.0.2 libpcreposix.so; }; })
libtool: install: /usr/bin/install -c .libs/libpcreposix.lai /usr/local/lib/libpcreposix.la
libtool: install: warning: relinking `libpcrecpp.la'
libtool: install: (cd /usr/local/src/pcre-8.35; /bin/sh /usr/local/src/pcre-8.35/libtool  --silent --tag CXX --mode=relink g++ -fvisibility=hidden -fvisibility-inlines-hidden -O2 -version-info 0:0:0 -o libpcrecpp.la -rpath /usr/local/lib libpcrecpp_la-pcrecpp.lo libpcrecpp_la-pcre_scanner.lo libpcrecpp_la-pcre_stringpiece.lo libpcre.la )
libtool: install: /usr/bin/install -c .libs/libpcrecpp.so.0.0.0T /usr/local/lib/libpcrecpp.so.0.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libpcrecpp.so.0.0.0 libpcrecpp.so.0 || { rm -f libpcrecpp.so.0 && ln -s libpcrecpp.so.0.0.0 libpcrecpp.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libpcrecpp.so.0.0.0 libpcrecpp.so || { rm -f libpcrecpp.so && ln -s libpcrecpp.so.0.0.0 libpcrecpp.so; }; })
libtool: install: /usr/bin/install -c .libs/libpcrecpp.lai /usr/local/lib/libpcrecpp.la
libtool: install: /usr/bin/install -c .libs/libpcre.a /usr/local/lib/libpcre.a
libtool: install: chmod 644 /usr/local/lib/libpcre.a
libtool: install: ranlib /usr/local/lib/libpcre.a
libtool: install: /usr/bin/install -c .libs/libpcreposix.a /usr/local/lib/libpcreposix.a
libtool: install: chmod 644 /usr/local/lib/libpcreposix.a
libtool: install: ranlib /usr/local/lib/libpcreposix.a
libtool: install: /usr/bin/install -c .libs/libpcrecpp.a /usr/local/lib/libpcrecpp.a
libtool: install: chmod 644 /usr/local/lib/libpcrecpp.a
libtool: install: ranlib /usr/local/lib/libpcrecpp.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/mkdir -p '/usr/local/bin'
  /bin/sh ./libtool   --mode=install /usr/bin/install -c pcretest pcregrep '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/pcretest /usr/local/bin/pcretest
libtool: install: /usr/bin/install -c .libs/pcregrep /usr/local/bin/pcregrep
 /usr/bin/mkdir -p '/usr/local/bin'
 /usr/bin/install -c pcre-config '/usr/local/bin'
 /usr/bin/mkdir -p '/usr/local/share/doc/pcre'
 /usr/bin/install -c -m 644 doc/pcre.txt doc/pcre-config.txt doc/pcregrep.txt doc/pcretest.txt AUTHORS COPYING ChangeLog LICENCE NEWS README '/usr/local/share/doc/pcre'
 /usr/bin/mkdir -p '/usr/local/share/doc/pcre/html'
 /usr/bin/install -c -m 644 doc/html/NON-AUTOTOOLS-BUILD.txt doc/html/README.txt doc/html/index.html doc/html/pcre-config.html doc/html/pcre.html doc/html/pcre16.html doc/html/pcre32.html doc/html/pcre_assign_jit_stack.html doc/html/pcre_compile.html doc/html/pcre_compile2.html doc/html/pcre_config.html doc/html/pcre_copy_named_substring.html doc/html/pcre_copy_substring.html doc/html/pcre_dfa_exec.html doc/html/pcre_exec.html doc/html/pcre_free_study.html doc/html/pcre_free_substring.html doc/html/pcre_free_substring_list.html doc/html/pcre_fullinfo.html doc/html/pcre_get_named_substring.html doc/html/pcre_get_stringnumber.html doc/html/pcre_get_stringtable_entries.html doc/html/pcre_get_substring.html doc/html/pcre_get_substring_list.html doc/html/pcre_jit_exec.html doc/html/pcre_jit_stack_alloc.html doc/html/pcre_jit_stack_free.html doc/html/pcre_maketables.html doc/html/pcre_pattern_to_host_byte_order.html doc/html/pcre_refcount.html doc/html/pcre_study.html doc/html/pcre_utf16_to_host_byte_order.html doc/html/pcre_utf32_to_host_byte_order.html doc/html/pcre_version.html doc/html/pcreapi.html doc/html/pcrebuild.html doc/html/pcrecallout.html doc/html/pcrecompat.html doc/html/pcredemo.html doc/html/pcregrep.html '/usr/local/share/doc/pcre/html'
 /usr/bin/install -c -m 644 doc/html/pcrejit.html doc/html/pcrelimits.html doc/html/pcrematching.html doc/html/pcrepartial.html doc/html/pcrepattern.html doc/html/pcreperform.html doc/html/pcreposix.html doc/html/pcreprecompile.html doc/html/pcresample.html doc/html/pcrestack.html doc/html/pcresyntax.html doc/html/pcretest.html doc/html/pcreunicode.html '/usr/local/share/doc/pcre/html'
 /usr/bin/mkdir -p '/usr/local/share/doc/pcre/html'
 /usr/bin/install -c -m 644 doc/html/pcrecpp.html '/usr/local/share/doc/pcre/html'
 /usr/bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 pcreposix.h pcrecpp.h pcre_scanner.h '/usr/local/include'
 /usr/bin/mkdir -p '/usr/local/share/man/man1'
 /usr/bin/install -c -m 644 doc/pcre-config.1 doc/pcregrep.1 doc/pcretest.1 '/usr/local/share/man/man1'
 /usr/bin/mkdir -p '/usr/local/share/man/man3'
 /usr/bin/install -c -m 644 doc/pcre.3 doc/pcre16.3 doc/pcre32.3 doc/pcre_assign_jit_stack.3 doc/pcre_compile.3 doc/pcre_compile2.3 doc/pcre_config.3 doc/pcre_copy_named_substring.3 doc/pcre_copy_substring.3 doc/pcre_dfa_exec.3 doc/pcre_exec.3 doc/pcre_free_study.3 doc/pcre_free_substring.3 doc/pcre_free_substring_list.3 doc/pcre_fullinfo.3 doc/pcre_get_named_substring.3 doc/pcre_get_stringnumber.3 doc/pcre_get_stringtable_entries.3 doc/pcre_get_substring.3 doc/pcre_get_substring_list.3 doc/pcre_jit_exec.3 doc/pcre_jit_stack_alloc.3 doc/pcre_jit_stack_free.3 doc/pcre_maketables.3 doc/pcre_pattern_to_host_byte_order.3 doc/pcre_refcount.3 doc/pcre_study.3 doc/pcre_utf16_to_host_byte_order.3 doc/pcre_utf32_to_host_byte_order.3 doc/pcre_version.3 doc/pcreapi.3 doc/pcrebuild.3 doc/pcrecallout.3 doc/pcrecompat.3 doc/pcredemo.3 doc/pcrejit.3 doc/pcrelimits.3 doc/pcrematching.3 doc/pcrepartial.3 doc/pcrepattern.3 '/usr/local/share/man/man3'
 /usr/bin/install -c -m 644 doc/pcreperform.3 doc/pcreposix.3 doc/pcreprecompile.3 doc/pcresample.3 doc/pcrestack.3 doc/pcresyntax.3 doc/pcreunicode.3 doc/pcrecpp.3 '/usr/local/share/man/man3'
 /usr/bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 pcre.h pcrecpparg.h pcre_stringpiece.h '/usr/local/include'
 /usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 libpcre.pc libpcreposix.pc libpcrecpp.pc '/usr/local/lib/pkgconfig'
make  install-data-hook
make[3]: Entering directory '/usr/local/src/pcre-8.35'
ln -sf pcre_assign_jit_stack.3           /usr/local/share/man/man3/pcre16_assign_jit_stack.3
ln -sf pcre_compile.3                    /usr/local/share/man/man3/pcre16_compile.3
ln -sf pcre_compile2.3                   /usr/local/share/man/man3/pcre16_compile2.3
ln -sf pcre_config.3                     /usr/local/share/man/man3/pcre16_config.3
ln -sf pcre_copy_named_substring.3       /usr/local/share/man/man3/pcre16_copy_named_substring.3
ln -sf pcre_copy_substring.3             /usr/local/share/man/man3/pcre16_copy_substring.3
ln -sf pcre_dfa_exec.3                   /usr/local/share/man/man3/pcre16_dfa_exec.3
ln -sf pcre_exec.3                       /usr/local/share/man/man3/pcre16_exec.3
ln -sf pcre_free_study.3                 /usr/local/share/man/man3/pcre16_free_study.3
ln -sf pcre_free_substring.3             /usr/local/share/man/man3/pcre16_free_substring.3
ln -sf pcre_free_substring_list.3        /usr/local/share/man/man3/pcre16_free_substring_list.3
ln -sf pcre_fullinfo.3                   /usr/local/share/man/man3/pcre16_fullinfo.3
ln -sf pcre_get_named_substring.3        /usr/local/share/man/man3/pcre16_get_named_substring.3
ln -sf pcre_get_stringnumber.3           /usr/local/share/man/man3/pcre16_get_stringnumber.3
ln -sf pcre_get_stringtable_entries.3    /usr/local/share/man/man3/pcre16_get_stringtable_entries.3
ln -sf pcre_get_substring.3              /usr/local/share/man/man3/pcre16_get_substring.3
ln -sf pcre_get_substring_list.3         /usr/local/share/man/man3/pcre16_get_substring_list.3
ln -sf pcre_jit_exec.3                   /usr/local/share/man/man3/pcre16_jit_exec.3
ln -sf pcre_jit_stack_alloc.3            /usr/local/share/man/man3/pcre16_jit_stack_alloc.3
ln -sf pcre_jit_stack_free.3             /usr/local/share/man/man3/pcre16_jit_stack_free.3
ln -sf pcre_maketables.3                 /usr/local/share/man/man3/pcre16_maketables.3
ln -sf pcre_pattern_to_host_byte_order.3 /usr/local/share/man/man3/pcre16_pattern_to_host_byte_order.3
ln -sf pcre_refcount.3                   /usr/local/share/man/man3/pcre16_refcount.3
ln -sf pcre_study.3                      /usr/local/share/man/man3/pcre16_study.3
ln -sf pcre_utf16_to_host_byte_order.3   /usr/local/share/man/man3/pcre16_utf16_to_host_byte_order.3
ln -sf pcre_version.3                    /usr/local/share/man/man3/pcre16_version.3
ln -sf pcre_assign_jit_stack.3           /usr/local/share/man/man3/pcre32_assign_jit_stack.3
ln -sf pcre_compile.3                    /usr/local/share/man/man3/pcre32_compile.3
ln -sf pcre_compile2.3                   /usr/local/share/man/man3/pcre32_compile2.3
ln -sf pcre_config.3                     /usr/local/share/man/man3/pcre32_config.3
ln -sf pcre_copy_named_substring.3       /usr/local/share/man/man3/pcre32_copy_named_substring.3
ln -sf pcre_copy_substring.3             /usr/local/share/man/man3/pcre32_copy_substring.3
ln -sf pcre_dfa_exec.3                   /usr/local/share/man/man3/pcre32_dfa_exec.3
ln -sf pcre_exec.3                       /usr/local/share/man/man3/pcre32_exec.3
ln -sf pcre_free_study.3                 /usr/local/share/man/man3/pcre32_free_study.3
ln -sf pcre_free_substring.3             /usr/local/share/man/man3/pcre32_free_substring.3
ln -sf pcre_free_substring_list.3        /usr/local/share/man/man3/pcre32_free_substring_list.3
ln -sf pcre_fullinfo.3                   /usr/local/share/man/man3/pcre32_fullinfo.3
ln -sf pcre_get_named_substring.3        /usr/local/share/man/man3/pcre32_get_named_substring.3
ln -sf pcre_get_stringnumber.3           /usr/local/share/man/man3/pcre32_get_stringnumber.3
ln -sf pcre_get_stringtable_entries.3    /usr/local/share/man/man3/pcre32_get_stringtable_entries.3
ln -sf pcre_get_substring.3              /usr/local/share/man/man3/pcre32_get_substring.3
ln -sf pcre_get_substring_list.3         /usr/local/share/man/man3/pcre32_get_substring_list.3
ln -sf pcre_jit_exec.3                   /usr/local/share/man/man3/pcre32_jit_exec.3
ln -sf pcre_jit_stack_alloc.3            /usr/local/share/man/man3/pcre32_jit_stack_alloc.3
ln -sf pcre_jit_stack_free.3             /usr/local/share/man/man3/pcre32_jit_stack_free.3
ln -sf pcre_maketables.3                 /usr/local/share/man/man3/pcre32_maketables.3
ln -sf pcre_pattern_to_host_byte_order.3 /usr/local/share/man/man3/pcre32_pattern_to_host_byte_order.3
ln -sf pcre_refcount.3                   /usr/local/share/man/man3/pcre32_refcount.3
ln -sf pcre_study.3                      /usr/local/share/man/man3/pcre32_study.3
ln -sf pcre_utf32_to_host_byte_order.3   /usr/local/share/man/man3/pcre32_utf32_to_host_byte_order.3
ln -sf pcre_version.3                    /usr/local/share/man/man3/pcre32_version.3
make[3]: Leaving directory '/usr/local/src/pcre-8.35'
make[2]: Leaving directory '/usr/local/src/pcre-8.35'
make[1]: Leaving directory '/usr/local/src/pcre-8.35'

查看PCRE版本

[root@lsdBKusFRn pcre-8.35]#  pcre-config --version
8.35

3 安装nginx

下载nginx安装包

[root@lsdBKusFRn pcre-8.35]# cd /usr/local/src/
[root@lsdBKusFRn src]# ll
total 1964
drwxr-xr-x 9 1169 1169   12288 May 28 20:04 pcre-8.35
-rw-r--r-- 1 root root 1996552 Apr  9  2014 pcre-8.35.tar.gz
[root@lsdBKusFRn src]# wget http://nginx.org/download/nginx-1.6.2.tar.gz
--2022-05-28 20:06:18--  http://nginx.org/download/nginx-1.6.2.tar.gz
Resolving nginx.org (nginx.org)... 3.125.197.172, 52.58.199.22, 2a05:d014:edb:5702::6, ...
Connecting to nginx.org (nginx.org)|3.125.197.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 804164 (785K) [application/octet-stream]
Saving to: ‘nginx-1.6.2.tar.gz’

nginx-1.6.2.tar.gz                        100%[=====================================================================================>] 785.32K  52.5KB/s    in 17s     

2022-05-28 20:06:35 (46.4 KB/s) - ‘nginx-1.6.2.tar.gz’ saved [804164/804164]

解压缩nginx安装包

[root@lsdBKusFRn src]# tar zxvf nginx-1.6.2.tar.gz
nginx-1.6.2/
nginx-1.6.2/auto/
nginx-1.6.2/conf/
nginx-1.6.2/contrib/
nginx-1.6.2/src/
nginx-1.6.2/configure
nginx-1.6.2/LICENSE
nginx-1.6.2/README
nginx-1.6.2/html/
nginx-1.6.2/man/
nginx-1.6.2/CHANGES.ru
nginx-1.6.2/CHANGES
nginx-1.6.2/man/nginx.8
nginx-1.6.2/html/50x.html
nginx-1.6.2/html/index.html
nginx-1.6.2/src/core/
nginx-1.6.2/src/event/
nginx-1.6.2/src/http/
nginx-1.6.2/src/mail/
nginx-1.6.2/src/misc/
nginx-1.6.2/src/os/
nginx-1.6.2/src/os/unix/
nginx-1.6.2/src/os/unix/ngx_aio_read_chain.c
nginx-1.6.2/src/os/unix/ngx_aio_read.c
nginx-1.6.2/src/os/unix/ngx_aio_write_chain.c
nginx-1.6.2/src/os/unix/ngx_aio_write.c
nginx-1.6.2/src/os/unix/ngx_atomic.h
nginx-1.6.2/src/os/unix/ngx_alloc.c
nginx-1.6.2/src/os/unix/ngx_alloc.h
nginx-1.6.2/src/os/unix/ngx_darwin_config.h
nginx-1.6.2/src/os/unix/ngx_channel.c
nginx-1.6.2/src/os/unix/ngx_channel.h
nginx-1.6.2/src/os/unix/ngx_daemon.c
nginx-1.6.2/src/os/unix/ngx_darwin.h
nginx-1.6.2/src/os/unix/ngx_darwin_sendfile_chain.c
nginx-1.6.2/src/os/unix/ngx_darwin_init.c
nginx-1.6.2/src/os/unix/ngx_file_aio_read.c
nginx-1.6.2/src/os/unix/ngx_errno.c
nginx-1.6.2/src/os/unix/ngx_errno.h
nginx-1.6.2/src/os/unix/ngx_freebsd.h
nginx-1.6.2/src/os/unix/ngx_files.c
nginx-1.6.2/src/os/unix/ngx_files.h
nginx-1.6.2/src/os/unix/ngx_freebsd_rfork_thread.c
nginx-1.6.2/src/os/unix/ngx_freebsd_config.h
nginx-1.6.2/src/os/unix/ngx_freebsd_init.c
nginx-1.6.2/src/os/unix/ngx_freebsd_sendfile_chain.c
nginx-1.6.2/src/os/unix/ngx_freebsd_rfork_thread.h
nginx-1.6.2/src/os/unix/ngx_gcc_atomic_sparc64.h
nginx-1.6.2/src/os/unix/ngx_gcc_atomic_amd64.h
nginx-1.6.2/src/os/unix/ngx_gcc_atomic_ppc.h
nginx-1.6.2/src/os/unix/ngx_solaris_sendfilev_chain.c
nginx-1.6.2/src/os/unix/ngx_gcc_atomic_x86.h
nginx-1.6.2/src/os/unix/ngx_linux.h
nginx-1.6.2/src/os/unix/ngx_linux_aio_read.c
nginx-1.6.2/src/os/unix/ngx_linux_config.h
nginx-1.6.2/src/os/unix/ngx_linux_init.c
nginx-1.6.2/src/os/unix/ngx_linux_sendfile_chain.c
nginx-1.6.2/src/os/unix/ngx_os.h
nginx-1.6.2/src/os/unix/ngx_posix_config.h
nginx-1.6.2/src/os/unix/ngx_posix_init.c
nginx-1.6.2/src/os/unix/ngx_process.c
nginx-1.6.2/src/os/unix/ngx_process.h
nginx-1.6.2/src/os/unix/ngx_process_cycle.c
nginx-1.6.2/src/os/unix/ngx_process_cycle.h
nginx-1.6.2/src/os/unix/ngx_pthread_thread.c
nginx-1.6.2/src/os/unix/ngx_readv_chain.c
nginx-1.6.2/src/os/unix/ngx_recv.c
nginx-1.6.2/src/os/unix/ngx_send.c
nginx-1.6.2/src/os/unix/ngx_setaffinity.c
nginx-1.6.2/src/os/unix/ngx_setaffinity.h
nginx-1.6.2/src/os/unix/ngx_setproctitle.c
nginx-1.6.2/src/os/unix/ngx_setproctitle.h
nginx-1.6.2/src/os/unix/ngx_shmem.c
nginx-1.6.2/src/os/unix/ngx_shmem.h
nginx-1.6.2/src/os/unix/ngx_socket.c
nginx-1.6.2/src/os/unix/ngx_socket.h
nginx-1.6.2/src/os/unix/ngx_solaris.h
nginx-1.6.2/src/os/unix/ngx_solaris_config.h
nginx-1.6.2/src/os/unix/ngx_solaris_init.c
nginx-1.6.2/src/os/unix/ngx_sunpro_atomic_sparc64.h
nginx-1.6.2/src/os/unix/ngx_sunpro_amd64.il
nginx-1.6.2/src/os/unix/ngx_sunpro_sparc64.il
nginx-1.6.2/src/os/unix/ngx_sunpro_x86.il
nginx-1.6.2/src/os/unix/ngx_thread.h
nginx-1.6.2/src/os/unix/ngx_time.c
nginx-1.6.2/src/os/unix/ngx_time.h
nginx-1.6.2/src/os/unix/ngx_udp_recv.c
nginx-1.6.2/src/os/unix/ngx_user.c
nginx-1.6.2/src/os/unix/ngx_user.h
nginx-1.6.2/src/os/unix/ngx_writev_chain.c
nginx-1.6.2/src/os/unix/rfork_thread.S
nginx-1.6.2/src/misc/ngx_google_perftools_module.c
nginx-1.6.2/src/misc/ngx_cpp_test_module.cpp
nginx-1.6.2/src/mail/ngx_mail_handler.c
nginx-1.6.2/src/mail/ngx_mail.c
nginx-1.6.2/src/mail/ngx_mail.h
nginx-1.6.2/src/mail/ngx_mail_auth_http_module.c
nginx-1.6.2/src/mail/ngx_mail_core_module.c
nginx-1.6.2/src/mail/ngx_mail_imap_handler.c
nginx-1.6.2/src/mail/ngx_mail_imap_module.c
nginx-1.6.2/src/mail/ngx_mail_imap_module.h
nginx-1.6.2/src/mail/ngx_mail_parse.c
nginx-1.6.2/src/mail/ngx_mail_pop3_handler.c
nginx-1.6.2/src/mail/ngx_mail_pop3_module.c
nginx-1.6.2/src/mail/ngx_mail_pop3_module.h
nginx-1.6.2/src/mail/ngx_mail_proxy_module.c
nginx-1.6.2/src/mail/ngx_mail_smtp_handler.c
nginx-1.6.2/src/mail/ngx_mail_smtp_module.c
nginx-1.6.2/src/mail/ngx_mail_smtp_module.h
nginx-1.6.2/src/mail/ngx_mail_ssl_module.c
nginx-1.6.2/src/mail/ngx_mail_ssl_module.h
nginx-1.6.2/src/http/modules/
nginx-1.6.2/src/http/ngx_http_cache.h
nginx-1.6.2/src/http/ngx_http.c
nginx-1.6.2/src/http/ngx_http.h
nginx-1.6.2/src/http/ngx_http_copy_filter_module.c
nginx-1.6.2/src/http/ngx_http_busy_lock.c
nginx-1.6.2/src/http/ngx_http_busy_lock.h
nginx-1.6.2/src/http/ngx_http_config.h
nginx-1.6.2/src/http/ngx_http_header_filter_module.c
nginx-1.6.2/src/http/ngx_http_core_module.c
nginx-1.6.2/src/http/ngx_http_core_module.h
nginx-1.6.2/src/http/ngx_http_file_cache.c
nginx-1.6.2/src/http/ngx_http_parse_time.c
nginx-1.6.2/src/http/ngx_http_parse.c
nginx-1.6.2/src/http/ngx_http_request_body.c
nginx-1.6.2/src/http/ngx_http_request.c
nginx-1.6.2/src/http/ngx_http_postpone_filter_module.c
nginx-1.6.2/src/http/ngx_http_request.h
nginx-1.6.2/src/http/ngx_http_spdy_module.c
nginx-1.6.2/src/http/ngx_http_script.c
nginx-1.6.2/src/http/ngx_http_script.h
nginx-1.6.2/src/http/ngx_http_spdy.c
nginx-1.6.2/src/http/ngx_http_spdy.h
nginx-1.6.2/src/http/ngx_http_spdy_filter_module.c
nginx-1.6.2/src/http/ngx_http_spdy_module.h
nginx-1.6.2/src/http/ngx_http_special_response.c
nginx-1.6.2/src/http/ngx_http_upstream.c
nginx-1.6.2/src/http/ngx_http_upstream.h
nginx-1.6.2/src/http/ngx_http_upstream_round_robin.c
nginx-1.6.2/src/http/ngx_http_upstream_round_robin.h
nginx-1.6.2/src/http/ngx_http_variables.c
nginx-1.6.2/src/http/ngx_http_variables.h
nginx-1.6.2/src/http/ngx_http_write_filter_module.c
nginx-1.6.2/src/http/modules/ngx_http_addition_filter_module.c
nginx-1.6.2/src/http/modules/ngx_http_access_module.c
nginx-1.6.2/src/http/modules/ngx_http_charset_filter_module.c
nginx-1.6.2/src/http/modules/ngx_http_auth_basic_module.c
nginx-1.6.2/src/http/modules/ngx_http_auth_request_module.c
nginx-1.6.2/src/http/modules/ngx_http_autoindex_module.c
nginx-1.6.2/src/http/modules/ngx_http_browser_module.c
nginx-1.6.2/src/http/modules/ngx_http_not_modified_filter_module.c
nginx-1.6.2/src/http/modules/ngx_http_chunked_filter_module.c
nginx-1.6.2/src/http/modules/ngx_http_dav_module.c
nginx-1.6.2/src/http/modules/ngx_http_degradation_module.c
nginx-1.6.2/src/http/modules/ngx_http_empty_gif_module.c
nginx-1.6.2/src/http/modules/ngx_http_fastcgi_module.c
nginx-1.6.2/src/http/modules/ngx_http_flv_module.c
nginx-1.6.2/src/http/modules/ngx_http_geo_module.c
nginx-1.6.2/src/http/modules/ngx_http_geoip_module.c
nginx-1.6.2/src/http/modules/ngx_http_gunzip_filter_module.c
nginx-1.6.2/src/http/modules/ngx_http_gzip_filter_module.c
nginx-1.6.2/src/http/modules/ngx_http_gzip_static_module.c
nginx-1.6.2/src/http/modules/ngx_http_headers_filter_module.c
nginx-1.6.2/src/http/modules/ngx_http_image_filter_module.c
nginx-1.6.2/src/http/modules/ngx_http_index_module.c
nginx-1.6.2/src/http/modules/ngx_http_limit_conn_module.c
nginx-1.6.2/src/http/modules/ngx_http_limit_req_module.c
nginx-1.6.2/src/http/modules/ngx_http_log_module.c
nginx-1.6.2/src/http/modules/ngx_http_map_module.c
nginx-1.6.2/src/http/modules/ngx_http_memcached_module.c
nginx-1.6.2/src/http/modules/ngx_http_mp4_module.c
nginx-1.6.2/src/http/modules/ngx_http_random_index_module.c
nginx-1.6.2/src/http/modules/ngx_http_proxy_module.c
nginx-1.6.2/src/http/modules/ngx_http_upstream_ip_hash_module.c
nginx-1.6.2/src/http/modules/ngx_http_range_filter_module.c
nginx-1.6.2/src/http/modules/ngx_http_realip_module.c
nginx-1.6.2/src/http/modules/ngx_http_referer_module.c
nginx-1.6.2/src/http/modules/ngx_http_rewrite_module.c
nginx-1.6.2/src/http/modules/ngx_http_scgi_module.c
nginx-1.6.2/src/http/modules/ngx_http_secure_link_module.c
nginx-1.6.2/src/http/modules/ngx_http_split_clients_module.c
nginx-1.6.2/src/http/modules/ngx_http_ssi_filter_module.c
nginx-1.6.2/src/http/modules/perl/
nginx-1.6.2/src/http/modules/ngx_http_ssi_filter_module.h
nginx-1.6.2/src/http/modules/ngx_http_ssl_module.c
nginx-1.6.2/src/http/modules/ngx_http_ssl_module.h
nginx-1.6.2/src/http/modules/ngx_http_static_module.c
nginx-1.6.2/src/http/modules/ngx_http_stub_status_module.c
nginx-1.6.2/src/http/modules/ngx_http_sub_filter_module.c
nginx-1.6.2/src/http/modules/ngx_http_upstream_keepalive_module.c
nginx-1.6.2/src/http/modules/ngx_http_upstream_least_conn_module.c
nginx-1.6.2/src/http/modules/ngx_http_userid_filter_module.c
nginx-1.6.2/src/http/modules/ngx_http_uwsgi_module.c
nginx-1.6.2/src/http/modules/ngx_http_xslt_filter_module.c
nginx-1.6.2/src/http/modules/perl/Makefile.PL
nginx-1.6.2/src/http/modules/perl/nginx.pm
nginx-1.6.2/src/http/modules/perl/nginx.xs
nginx-1.6.2/src/http/modules/perl/typemap
nginx-1.6.2/src/http/modules/perl/ngx_http_perl_module.c
nginx-1.6.2/src/http/modules/perl/ngx_http_perl_module.h
nginx-1.6.2/src/event/modules/
nginx-1.6.2/src/event/ngx_event_accept.c
nginx-1.6.2/src/event/ngx_event.c
nginx-1.6.2/src/event/ngx_event.h
nginx-1.6.2/src/event/ngx_event_openssl_stapling.c
nginx-1.6.2/src/event/ngx_event_busy_lock.c
nginx-1.6.2/src/event/ngx_event_busy_lock.h
nginx-1.6.2/src/event/ngx_event_connect.c
nginx-1.6.2/src/event/ngx_event_connect.h
nginx-1.6.2/src/event/ngx_event_mutex.c
nginx-1.6.2/src/event/ngx_event_openssl.c
nginx-1.6.2/src/event/ngx_event_openssl.h
nginx-1.6.2/src/event/ngx_event_pipe.c
nginx-1.6.2/src/event/ngx_event_pipe.h
nginx-1.6.2/src/event/ngx_event_posted.c
nginx-1.6.2/src/event/ngx_event_posted.h
nginx-1.6.2/src/event/ngx_event_timer.c
nginx-1.6.2/src/event/ngx_event_timer.h
nginx-1.6.2/src/event/modules/ngx_devpoll_module.c
nginx-1.6.2/src/event/modules/ngx_aio_module.c
nginx-1.6.2/src/event/modules/ngx_eventport_module.c
nginx-1.6.2/src/event/modules/ngx_epoll_module.c
nginx-1.6.2/src/event/modules/ngx_win32_select_module.c
nginx-1.6.2/src/event/modules/ngx_kqueue_module.c
nginx-1.6.2/src/event/modules/ngx_poll_module.c
nginx-1.6.2/src/event/modules/ngx_rtsig_module.c
nginx-1.6.2/src/event/modules/ngx_select_module.c
nginx-1.6.2/src/core/ngx_array.c
nginx-1.6.2/src/core/nginx.c
nginx-1.6.2/src/core/nginx.h
nginx-1.6.2/src/core/ngx_conf_file.c
nginx-1.6.2/src/core/ngx_array.h
nginx-1.6.2/src/core/ngx_buf.c
nginx-1.6.2/src/core/ngx_buf.h
nginx-1.6.2/src/core/ngx_connection.c
nginx-1.6.2/src/core/ngx_conf_file.h
nginx-1.6.2/src/core/ngx_config.h
nginx-1.6.2/src/core/ngx_murmurhash.c
nginx-1.6.2/src/core/ngx_file.c
nginx-1.6.2/src/core/ngx_connection.h
nginx-1.6.2/src/core/ngx_core.h
nginx-1.6.2/src/core/ngx_cpuinfo.c
nginx-1.6.2/src/core/ngx_crc.h
nginx-1.6.2/src/core/ngx_crc32.c
nginx-1.6.2/src/core/ngx_crc32.h
nginx-1.6.2/src/core/ngx_crypt.c
nginx-1.6.2/src/core/ngx_crypt.h
nginx-1.6.2/src/core/ngx_cycle.c
nginx-1.6.2/src/core/ngx_cycle.h
nginx-1.6.2/src/core/ngx_file.h
nginx-1.6.2/src/core/ngx_hash.c
nginx-1.6.2/src/core/ngx_hash.h
nginx-1.6.2/src/core/ngx_inet.c
nginx-1.6.2/src/core/ngx_inet.h
nginx-1.6.2/src/core/ngx_list.c
nginx-1.6.2/src/core/ngx_list.h
nginx-1.6.2/src/core/ngx_log.c
nginx-1.6.2/src/core/ngx_log.h
nginx-1.6.2/src/core/ngx_md5.c
nginx-1.6.2/src/core/ngx_md5.h
nginx-1.6.2/src/core/ngx_open_file_cache.c
nginx-1.6.2/src/core/ngx_murmurhash.h
nginx-1.6.2/src/core/ngx_open_file_cache.h
nginx-1.6.2/src/core/ngx_output_chain.c
nginx-1.6.2/src/core/ngx_palloc.c
nginx-1.6.2/src/core/ngx_palloc.h
nginx-1.6.2/src/core/ngx_parse.c
nginx-1.6.2/src/core/ngx_parse.h
nginx-1.6.2/src/core/ngx_proxy_protocol.c
nginx-1.6.2/src/core/ngx_proxy_protocol.h
nginx-1.6.2/src/core/ngx_queue.c
nginx-1.6.2/src/core/ngx_queue.h
nginx-1.6.2/src/core/ngx_radix_tree.c
nginx-1.6.2/src/core/ngx_radix_tree.h
nginx-1.6.2/src/core/ngx_rbtree.c
nginx-1.6.2/src/core/ngx_rbtree.h
nginx-1.6.2/src/core/ngx_regex.c
nginx-1.6.2/src/core/ngx_regex.h
nginx-1.6.2/src/core/ngx_resolver.c
nginx-1.6.2/src/core/ngx_resolver.h
nginx-1.6.2/src/core/ngx_sha1.h
nginx-1.6.2/src/core/ngx_shmtx.c
nginx-1.6.2/src/core/ngx_shmtx.h
nginx-1.6.2/src/core/ngx_slab.c
nginx-1.6.2/src/core/ngx_slab.h
nginx-1.6.2/src/core/ngx_spinlock.c
nginx-1.6.2/src/core/ngx_string.c
nginx-1.6.2/src/core/ngx_string.h
nginx-1.6.2/src/core/ngx_times.c
nginx-1.6.2/src/core/ngx_times.h
nginx-1.6.2/contrib/geo2nginx.pl
nginx-1.6.2/contrib/README
nginx-1.6.2/contrib/unicode2nginx/
nginx-1.6.2/contrib/vim/
nginx-1.6.2/contrib/vim/ftdetect/
nginx-1.6.2/contrib/vim/indent/
nginx-1.6.2/contrib/vim/syntax/
nginx-1.6.2/contrib/vim/syntax/nginx.vim
nginx-1.6.2/contrib/vim/indent/nginx.vim
nginx-1.6.2/contrib/vim/ftdetect/nginx.vim
nginx-1.6.2/contrib/unicode2nginx/koi-utf
nginx-1.6.2/contrib/unicode2nginx/win-utf
nginx-1.6.2/contrib/unicode2nginx/unicode-to-nginx.pl
nginx-1.6.2/conf/fastcgi.conf
nginx-1.6.2/conf/fastcgi_params
nginx-1.6.2/conf/koi-utf
nginx-1.6.2/conf/koi-win
nginx-1.6.2/conf/mime.types
nginx-1.6.2/conf/nginx.conf
nginx-1.6.2/conf/scgi_params
nginx-1.6.2/conf/uwsgi_params
nginx-1.6.2/conf/win-utf
nginx-1.6.2/auto/cc/
nginx-1.6.2/auto/have_headers
nginx-1.6.2/auto/define
nginx-1.6.2/auto/endianness
nginx-1.6.2/auto/feature
nginx-1.6.2/auto/have
nginx-1.6.2/auto/lib/
nginx-1.6.2/auto/os/
nginx-1.6.2/auto/headers
nginx-1.6.2/auto/include
nginx-1.6.2/auto/init
nginx-1.6.2/auto/install
nginx-1.6.2/auto/types/
nginx-1.6.2/auto/make
nginx-1.6.2/auto/modules
nginx-1.6.2/auto/nohave
nginx-1.6.2/auto/options
nginx-1.6.2/auto/sources
nginx-1.6.2/auto/stubs
nginx-1.6.2/auto/summary
nginx-1.6.2/auto/unix
nginx-1.6.2/auto/types/uintptr_t
nginx-1.6.2/auto/types/sizeof
nginx-1.6.2/auto/types/typedef
nginx-1.6.2/auto/types/value
nginx-1.6.2/auto/os/conf
nginx-1.6.2/auto/os/darwin
nginx-1.6.2/auto/os/freebsd
nginx-1.6.2/auto/os/linux
nginx-1.6.2/auto/os/solaris
nginx-1.6.2/auto/os/win32
nginx-1.6.2/auto/lib/geoip/
nginx-1.6.2/auto/lib/conf
nginx-1.6.2/auto/lib/google-perftools/
nginx-1.6.2/auto/lib/libatomic/
nginx-1.6.2/auto/lib/libgd/
nginx-1.6.2/auto/lib/libxslt/
nginx-1.6.2/auto/lib/md5/
nginx-1.6.2/auto/lib/make
nginx-1.6.2/auto/lib/openssl/
nginx-1.6.2/auto/lib/pcre/
nginx-1.6.2/auto/lib/perl/
nginx-1.6.2/auto/lib/sha1/
nginx-1.6.2/auto/lib/zlib/
nginx-1.6.2/auto/lib/test
nginx-1.6.2/auto/lib/zlib/makefile.bcc
nginx-1.6.2/auto/lib/zlib/conf
nginx-1.6.2/auto/lib/zlib/make
nginx-1.6.2/auto/lib/zlib/makefile.msvc
nginx-1.6.2/auto/lib/zlib/makefile.owc
nginx-1.6.2/auto/lib/zlib/patch.zlib.h
nginx-1.6.2/auto/lib/sha1/makefile.bcc
nginx-1.6.2/auto/lib/sha1/conf
nginx-1.6.2/auto/lib/sha1/make
nginx-1.6.2/auto/lib/sha1/makefile.msvc
nginx-1.6.2/auto/lib/sha1/makefile.owc
nginx-1.6.2/auto/lib/perl/conf
nginx-1.6.2/auto/lib/perl/make
nginx-1.6.2/auto/lib/pcre/makefile.bcc
nginx-1.6.2/auto/lib/pcre/conf
nginx-1.6.2/auto/lib/pcre/make
nginx-1.6.2/auto/lib/pcre/makefile.msvc
nginx-1.6.2/auto/lib/pcre/makefile.owc
nginx-1.6.2/auto/lib/openssl/makefile.bcc
nginx-1.6.2/auto/lib/openssl/conf
nginx-1.6.2/auto/lib/openssl/make
nginx-1.6.2/auto/lib/openssl/makefile.msvc
nginx-1.6.2/auto/lib/md5/makefile.bcc
nginx-1.6.2/auto/lib/md5/conf
nginx-1.6.2/auto/lib/md5/make
nginx-1.6.2/auto/lib/md5/makefile.msvc
nginx-1.6.2/auto/lib/md5/makefile.owc
nginx-1.6.2/auto/lib/libxslt/conf
nginx-1.6.2/auto/lib/libgd/conf
nginx-1.6.2/auto/lib/libatomic/conf
nginx-1.6.2/auto/lib/libatomic/make
nginx-1.6.2/auto/lib/google-perftools/conf
nginx-1.6.2/auto/lib/geoip/conf
nginx-1.6.2/auto/cc/clang
nginx-1.6.2/auto/cc/acc
nginx-1.6.2/auto/cc/bcc
nginx-1.6.2/auto/cc/ccc
nginx-1.6.2/auto/cc/conf
nginx-1.6.2/auto/cc/gcc
nginx-1.6.2/auto/cc/icc
nginx-1.6.2/auto/cc/msvc
nginx-1.6.2/auto/cc/name
nginx-1.6.2/auto/cc/owc
nginx-1.6.2/auto/cc/sunc

安装nginx

[root@lsdBKusFRn src]# cd nginx-1.6.2
[root@lsdBKusFRn nginx-1.6.2]# ./configure --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/src/pcre-8.35
checking for OS
 + Linux 4.18.0-348.7.1.el8_5.x86_64 x86_64
checking for C compiler ... found
 + using GNU C compiler
 + gcc version: 8.5.0 20210514 (Red Hat 8.5.0-4) (GCC) 
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for EPOLLRDHUP ... found
checking for O_PATH ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE ... found
checking for TCP_FASTOPEN ... found
checking for TCP_INFO ... found
checking for accept4() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system byte ordering ... little endian
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
checking for OpenSSL library ... found
checking for zlib library ... found
creating objs/Makefile

Configuration summary
  + using PCRE library: /usr/local/src/pcre-8.35
  + using system OpenSSL library
  + md5: using OpenSSL library
  + sha1: using OpenSSL library
  + using system zlib library

  nginx path prefix: "/usr/local/webserver/nginx"
  nginx binary file: "/usr/local/webserver/nginx/sbin/nginx"
  nginx configuration prefix: "/usr/local/webserver/nginx/conf"
  nginx configuration file: "/usr/local/webserver/nginx/conf/nginx.conf"
  nginx pid file: "/usr/local/webserver/nginx/logs/nginx.pid"
  nginx error log file: "/usr/local/webserver/nginx/logs/error.log"
  nginx http access log file: "/usr/local/webserver/nginx/logs/access.log"
  nginx http client request body temporary files: "client_body_temp"
  nginx http proxy temporary files: "proxy_temp"
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: "scgi_temp"

[root@lsdBKusFRn nginx-1.6.2]# make
make -f objs/Makefile
make[1]: Entering directory '/usr/local/src/nginx-1.6.2'
cd /usr/local/src/pcre-8.35 \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared 
make[2]: Entering directory '/usr/local/src/pcre-8.35'
 rm -f pcretest pcregrep
test -z "pcre_chartables.c testsavedregex teststderr testtemp* testtry testNinput testtrygrep teststderrgrep testNinputgrep" || rm -f pcre_chartables.c testsavedregex teststderr testtemp* testtry testNinput testtrygrep teststderrgrep testNinputgrep
test -z "libpcre.la   libpcreposix.la libpcrecpp.la" || rm -f libpcre.la   libpcreposix.la libpcrecpp.la
rm -f ./so_locations
rm -rf .libs _libs
 rm -f pcrecpp_unittest pcre_scanner_unittest pcre_stringpiece_unittest
rm -f *.o
test -z "pcrecpp_unittest.log pcre_scanner_unittest.log pcre_stringpiece_unittest.log RunTest.log RunGrepTest.log" || rm -f pcrecpp_unittest.log pcre_scanner_unittest.log pcre_stringpiece_unittest.log RunTest.log RunGrepTest.log
test -z "pcrecpp_unittest.trs pcre_scanner_unittest.trs pcre_stringpiece_unittest.trs RunTest.trs RunGrepTest.trs" || rm -f pcrecpp_unittest.trs pcre_scanner_unittest.trs pcre_stringpiece_unittest.trs RunTest.trs RunGrepTest.trs
test -z "test-suite.log" || rm -f test-suite.log
rm -f *.lo
rm -f *.tab.c
test -z "libpcre.pc libpcre16.pc libpcre32.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h" || rm -f libpcre.pc libpcre16.pc libpcre32.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h
test . = "." || test -z "" || rm -f 
rm -f config.h stamp-h1
rm -f libtool config.lt
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
rm -f cscope.out cscope.in.out cscope.po.out cscope.files
rm -f config.status config.cache config.log configure.lineno config.status.lineno
rm -rf ./.deps
rm -f Makefile
make[2]: Leaving directory '/usr/local/src/pcre-8.35'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking dependency style of cc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking whether cc understands -c and -o together... (cached) yes
checking dependency style of cc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int64_t... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether ln -s works... yes
checking whether the -Werror option is usable... yes
checking for simple visibility declarations... yes
checking for ANSI C header files... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for alias support in the linker... no
checking for alias support in the linker... no
checking string usability... yes
checking string presence... yes
checking for string... yes
checking bits/type_traits.h usability... no
checking bits/type_traits.h presence... no
checking for bits/type_traits.h... no
checking type_traits.h usability... no
checking type_traits.h presence... no
checking for type_traits.h... no
checking for strtoq... yes
checking for long long... yes
checking for unsigned long long... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for bcopy... yes
checking for memmove... yes
checking for strerror... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzopen in -lz... yes
checking bzlib.h usability... no
checking bzlib.h presence... no
checking for bzlib.h... no
checking for libbz2... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libpcre.pc
config.status: creating libpcre16.pc
config.status: creating libpcre32.pc
config.status: creating libpcreposix.pc
config.status: creating libpcrecpp.pc
config.status: creating pcre-config
config.status: creating pcre.h
config.status: creating pcre_stringpiece.h
config.status: creating pcrecpparg.h
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing script-chmod commands
config.status: executing delete-old-chartables commands

pcre-8.35 configuration summary:

    Install prefix .................. : /usr/local
    C preprocessor .................. : cc -E
    C compiler ...................... : cc
    C++ preprocessor ................ : g++ -E
    C++ compiler .................... : g++
    Linker .......................... : /usr/bin/ld -m elf_x86_64
    C preprocessor flags ............ : 
    C compiler flags ................ : -O2 -fomit-frame-pointer -pipe  -fvisibility=hidden
    C++ compiler flags .............. : -O2 -fvisibility=hidden -fvisibility-inlines-hidden
    Linker flags .................... : 
    Extra libraries ................. : 

    Build 8 bit pcre library ........ : yes
    Build 16 bit pcre library ....... : no
    Build 32 bit pcre library ....... : no
    Build C++ library ............... : yes
    Enable JIT compiling support .... : no
    Enable UTF-8/16/32 support ...... : no
    Unicode properties .............. : no
    Newline char/sequence ........... : lf
    \R matches only ANYCRLF ......... : no
    EBCDIC coding ................... : no
    EBCDIC code for NL .............. : n/a
    Rebuild char tables ............. : no
    Use stack recursion ............. : yes
    POSIX mem threshold ............. : 10
    Internal link size .............. : 2
    Nested parentheses limit ........ : 250
    Match limit ..................... : 10000000
    Match limit recursion ........... : MATCH_LIMIT
    Build shared libs ............... : no
    Build static libs ............... : yes
    Use JIT in pcregrep ............. : no
    Buffer size for pcregrep ........ : 20480
    Link pcregrep with libz ......... : no
    Link pcregrep with libbz2 ....... : no
    Link pcretest with libedit ...... : no
    Link pcretest with libreadline .. : no
    Valgrind support ................ : no
    Code coverage ................... : no

cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/nginx.o \
        src/core/nginx.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_log.o \
        src/core/ngx_log.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_palloc.o \
        src/core/ngx_palloc.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_array.o \
        src/core/ngx_array.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_list.o \
        src/core/ngx_list.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_hash.o \
        src/core/ngx_hash.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_buf.o \
        src/core/ngx_buf.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_queue.o \
        src/core/ngx_queue.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_output_chain.o \
        src/core/ngx_output_chain.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_string.o \
        src/core/ngx_string.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_parse.o \
        src/core/ngx_parse.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_inet.o \
        src/core/ngx_inet.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_file.o \
        src/core/ngx_file.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_crc32.o \
        src/core/ngx_crc32.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_murmurhash.o \
        src/core/ngx_murmurhash.c
src/core/ngx_murmurhash.c: In function ‘ngx_murmur_hash2’:
src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
         h ^= data[2] << 16;
         ~~^~~~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:38:5: note: here
     case 2:
     ^~~~
src/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
         h ^= data[1] << 8;
         ~~^~~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:40:5: note: here
     case 1:
     ^~~~
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:446: objs/src/core/ngx_murmurhash.o] Error 1
make[1]: Leaving directory '/usr/local/src/nginx-1.6.2'
make: *** [Makefile:8: build] Error 2

在编译的时候报错:src/core/ngx_murmurhash.c:37:11: error: this statement may fall through

解决办法:修改Makefile

[root@lsdBKusFRn nginx-1.6.2]# vi objs/Makefile 

CC =    cc
CFLAGS =  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g 
CPP =   cc -E
LINK =  $(CC)

修改为:

CC =    cc
CFLAGS =  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g 
CPP =   cc -E
LINK =  $(CC)

重新make,报错:cd.current_salt[0] = ~salt[0];

cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/os/unix/ngx_user.o \
        src/os/unix/ngx_user.c
src/os/unix/ngx_user.c: In function ‘ngx_libc_crypt’:
src/os/unix/ngx_user.c:35:7: error: ‘struct crypt_data’ has no member named ‘current_salt’
     cd.current_salt[0] = ~salt[0];
       ^
make[1]: *** [objs/Makefile:726: objs/src/os/unix/ngx_user.o] Error 1
make[1]: Leaving directory '/usr/local/src/nginx-1.6.2'
make: *** [Makefile:8: build] Error 2
[root@lsdBKusFRn nginx-1.6.2]# vi src/os/unix/ngx_user.c 

将这一行注释掉,重新make,报错:dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL);

In file included from /usr/include/openssl/opensslconf.h:42,
                 from /usr/include/openssl/e_os2.h:13,
                 from /usr/include/openssl/ssl.h:15,
                 from src/event/ngx_event_openssl.h:15,
                 from src/core/ngx_core.h:73,
                 from src/event/ngx_event_openssl.c:9:
/usr/include/openssl/rsa.h:235:1: note: declared here
 DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
 ^~~~~~~~~~~~~~~~~~
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_dhparam’:
src/event/ngx_event_openssl.c:637:11: error: dereferencing pointer to incomplete type ‘DH’ {aka ‘struct dh_st’}
         dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL);
           ^~
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_handshake’:
src/event/ngx_event_openssl.c:856:31: error: dereferencing pointer to incomplete type ‘SSL’ {aka ‘struct ssl_st’}
         if (c->ssl->connection->s3) {
                               ^~
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_connection_error’:
src/event/ngx_event_openssl.c:1592:21: error: ‘SSL_R_NO_CIPHERS_PASSED’ undeclared (first use in this function); did you mean ‘SSL_R_NO_CIPHERS_SPECIFIED’?
             || n == SSL_R_NO_CIPHERS_PASSED                          /*  182 */
                     ^~~~~~~~~~~~~~~~~~~~~~~
                     SSL_R_NO_CIPHERS_SPECIFIED
src/event/ngx_event_openssl.c:1592:21: note: each undeclared identifier is reported only once for each function it appears in
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_session_cache’:
src/event/ngx_event_openssl.c:1783:43: warning: passing argument 2 of ‘SSL_CTX_sess_set_get_cb’ from incompatible pointer type [-Wincompatible-pointer-types]
         SSL_CTX_sess_set_get_cb(ssl->ctx, ngx_ssl_get_cached_session);

这是因为openssl版本不一致导致,直接安装openssl1.0版本

[root@lsdBKusFRn src] wget http://www.openssl.org/source/openssl-1.1.0e.tar.gz
[root@lsdBKusFRn src] tar -xvf openssl-1.1.0e.tar.gz 
[root@lsdBKusFRn src] cd openssl-1.1.0e/ &&./config shared zlib --
[root@lsdBKusFRn src] make & make install
[root@lsdBKusFRn src] cd ..
[root@lsdBKusFRn local] ln -s openssl ssl
[root@lsdBKusFRn local] echo "/usr/local/openssl/lib" >>/etc/ld.so.conf
[root@lsdBKusFRn local] ldconfig
[root@lsdBKusFRn local] export PATH=/usr/local/openssl/bin:$PATH
[root@lsdBKusFRn local] openssl version
OpenSSL 1.1.0e  16 Feb 2017

openssl1.0安装成功,重新进入nginx目录make

[root@lsdBKusFRn nginx-1.6.2]# ./configure --prefix=/usr/local/webserver/nginx --with-openssl=../../openssl --with-pcre=/usr/local/src/pcre-8.35
[root@lsdBKusFRn nginx-1.6.2]# make
[root@lsdBKusFRn nginx-1.6.2]# make install
[root@lsdBKusFRn nginx-1.6.2]# make install
make -f objs/Makefile install
make[1]: Entering directory '/usr/local/src/nginx-1.6.2'
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/nginx.o \
        src/core/nginx.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_log.o \
        src/core/ngx_log.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_palloc.o \
        src/core/ngx_palloc.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_array.o \
        src/core/ngx_array.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_list.o \
        src/core/ngx_list.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_hash.o \
        src/core/ngx_hash.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_buf.o \
        src/core/ngx_buf.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_queue.o \
        src/core/ngx_queue.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_output_chain.o \
        src/core/ngx_output_chain.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_string.o \
        src/core/ngx_string.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_parse.o \
        src/core/ngx_parse.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_inet.o \
        src/core/ngx_inet.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_file.o \
        src/core/ngx_file.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.35 -I objs \
        -o objs/src/core/ngx_crc32.o \
        src/core/ngx_crc32.c
cc -o objs/nginx \
objs/src/core/nginx.o \
objs/src/core/ngx_log.o \
objs/src/core/ngx_palloc.o \
objs/src/core/ngx_array.o \
objs/src/core/ngx_list.o \
objs/src/core/ngx_hash.o \
objs/src/core/ngx_buf.o \
objs/src/core/ngx_queue.o \
objs/src/core/ngx_output_chain.o \
objs/src/core/ngx_string.o \
objs/src/core/ngx_parse.o \
objs/src/core/ngx_inet.o \
objs/src/core/ngx_file.o \
objs/src/core/ngx_crc32.o \
objs/src/core/ngx_murmurhash.o \
objs/src/core/ngx_md5.o \
objs/src/core/ngx_rbtree.o \
objs/src/core/ngx_radix_tree.o \
objs/src/core/ngx_slab.o \
objs/src/core/ngx_times.o \
objs/src/core/ngx_shmtx.o \
objs/src/core/ngx_connection.o \
objs/src/core/ngx_cycle.o \
objs/src/core/ngx_spinlock.o \
objs/src/core/ngx_cpuinfo.o \
objs/src/core/ngx_conf_file.o \
objs/src/core/ngx_resolver.o \
objs/src/core/ngx_open_file_cache.o \
objs/src/core/ngx_crypt.o \
objs/src/core/ngx_proxy_protocol.o \
objs/src/event/ngx_event.o \
objs/src/event/ngx_event_timer.o \
objs/src/event/ngx_event_posted.o \
objs/src/event/ngx_event_busy_lock.o \
objs/src/event/ngx_event_accept.o \
objs/src/event/ngx_event_connect.o \
objs/src/event/ngx_event_pipe.o \
objs/src/os/unix/ngx_time.o \
objs/src/os/unix/ngx_errno.o \
objs/src/os/unix/ngx_alloc.o \
objs/src/os/unix/ngx_files.o \
objs/src/os/unix/ngx_socket.o \
objs/src/os/unix/ngx_recv.o \
objs/src/os/unix/ngx_readv_chain.o \
objs/src/os/unix/ngx_udp_recv.o \
objs/src/os/unix/ngx_send.o \
objs/src/os/unix/ngx_writev_chain.o \
objs/src/os/unix/ngx_channel.o \
objs/src/os/unix/ngx_shmem.o \
objs/src/os/unix/ngx_process.o \
objs/src/os/unix/ngx_daemon.o \
objs/src/os/unix/ngx_setaffinity.o \
objs/src/os/unix/ngx_setproctitle.o \
objs/src/os/unix/ngx_posix_init.o \
objs/src/os/unix/ngx_user.o \
objs/src/os/unix/ngx_process_cycle.o \
objs/src/os/unix/ngx_linux_init.o \
objs/src/event/modules/ngx_epoll_module.o \
objs/src/os/unix/ngx_linux_sendfile_chain.o \
objs/src/core/ngx_regex.o \
objs/src/http/ngx_http.o \
objs/src/http/ngx_http_core_module.o \
objs/src/http/ngx_http_special_response.o \
objs/src/http/ngx_http_request.o \
objs/src/http/ngx_http_parse.o \
objs/src/http/ngx_http_header_filter_module.o \
objs/src/http/ngx_http_write_filter_module.o \
objs/src/http/ngx_http_copy_filter_module.o \
objs/src/http/modules/ngx_http_log_module.o \
objs/src/http/ngx_http_request_body.o \
objs/src/http/ngx_http_variables.o \
objs/src/http/ngx_http_script.o \
objs/src/http/ngx_http_upstream.o \
objs/src/http/ngx_http_upstream_round_robin.o \
objs/src/http/ngx_http_parse_time.o \
objs/src/http/modules/ngx_http_static_module.o \
objs/src/http/modules/ngx_http_index_module.o \
objs/src/http/modules/ngx_http_chunked_filter_module.o \
objs/src/http/modules/ngx_http_range_filter_module.o \
objs/src/http/modules/ngx_http_headers_filter_module.o \
objs/src/http/modules/ngx_http_not_modified_filter_module.o \
objs/src/http/ngx_http_busy_lock.o \
objs/src/http/ngx_http_file_cache.o \
objs/src/http/modules/ngx_http_gzip_filter_module.o \
objs/src/http/ngx_http_postpone_filter_module.o \
objs/src/http/modules/ngx_http_ssi_filter_module.o \
objs/src/http/modules/ngx_http_charset_filter_module.o \
objs/src/http/modules/ngx_http_userid_filter_module.o \
objs/src/http/modules/ngx_http_autoindex_module.o \
objs/src/http/modules/ngx_http_auth_basic_module.o \
objs/src/http/modules/ngx_http_access_module.o \
objs/src/http/modules/ngx_http_limit_conn_module.o \
objs/src/http/modules/ngx_http_limit_req_module.o \
objs/src/http/modules/ngx_http_geo_module.o \
objs/src/http/modules/ngx_http_map_module.o \
objs/src/http/modules/ngx_http_split_clients_module.o \
objs/src/http/modules/ngx_http_referer_module.o \
objs/src/http/modules/ngx_http_rewrite_module.o \
objs/src/http/modules/ngx_http_proxy_module.o \
objs/src/http/modules/ngx_http_fastcgi_module.o \
objs/src/http/modules/ngx_http_uwsgi_module.o \
objs/src/http/modules/ngx_http_scgi_module.o \
objs/src/http/modules/ngx_http_memcached_module.o \
objs/src/http/modules/ngx_http_empty_gif_module.o \
objs/src/http/modules/ngx_http_browser_module.o \
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
objs/ngx_modules.o \
-lpthread -lcrypt /usr/local/src/pcre-8.35/.libs/libpcre.a -lcrypto -lcrypto -lz
test -d '/usr/local/webserver/nginx' || mkdir -p '/usr/local/webserver/nginx'
test -d '/usr/local/webserver/nginx/sbin'               || mkdir -p '/usr/local/webserver/nginx/sbin'
test ! -f '/usr/local/webserver/nginx/sbin/nginx'               || mv '/usr/local/webserver/nginx/sbin/nginx'                   '/usr/local/webserver/nginx/sbin/nginx.old'
cp objs/nginx '/usr/local/webserver/nginx/sbin/nginx'
test -d '/usr/local/webserver/nginx/conf'               || mkdir -p '/usr/local/webserver/nginx/conf'
cp conf/koi-win '/usr/local/webserver/nginx/conf'
cp conf/koi-utf '/usr/local/webserver/nginx/conf'
cp conf/win-utf '/usr/local/webserver/nginx/conf'
test -f '/usr/local/webserver/nginx/conf/mime.types'            || cp conf/mime.types '/usr/local/webserver/nginx/conf'
cp conf/mime.types '/usr/local/webserver/nginx/conf/mime.types.default'
test -f '/usr/local/webserver/nginx/conf/fastcgi_params'                || cp conf/fastcgi_params '/usr/local/webserver/nginx/conf'
cp conf/fastcgi_params          '/usr/local/webserver/nginx/conf/fastcgi_params.default'
test -f '/usr/local/webserver/nginx/conf/fastcgi.conf'          || cp conf/fastcgi.conf '/usr/local/webserver/nginx/conf'
cp conf/fastcgi.conf '/usr/local/webserver/nginx/conf/fastcgi.conf.default'
test -f '/usr/local/webserver/nginx/conf/uwsgi_params'          || cp conf/uwsgi_params '/usr/local/webserver/nginx/conf'
cp conf/uwsgi_params            '/usr/local/webserver/nginx/conf/uwsgi_params.default'
test -f '/usr/local/webserver/nginx/conf/scgi_params'           || cp conf/scgi_params '/usr/local/webserver/nginx/conf'
cp conf/scgi_params             '/usr/local/webserver/nginx/conf/scgi_params.default'
test -f '/usr/local/webserver/nginx/conf/nginx.conf'            || cp conf/nginx.conf '/usr/local/webserver/nginx/conf/nginx.conf'
cp conf/nginx.conf '/usr/local/webserver/nginx/conf/nginx.conf.default'
test -d '/usr/local/webserver/nginx/logs'               || mkdir -p '/usr/local/webserver/nginx/logs'
test -d '/usr/local/webserver/nginx/logs' ||            mkdir -p '/usr/local/webserver/nginx/logs'
test -d '/usr/local/webserver/nginx/html'               || cp -R html '/usr/local/webserver/nginx'
test -d '/usr/local/webserver/nginx/logs' ||            mkdir -p '/usr/local/webserver/nginx/logs'
make[1]: Leaving directory '/usr/local/src/nginx-1.6.2'

查看nginx版本

[root@lsdBKusFRn nginx-1.6.2]# /usr/local/webserver/nginx/sbin/nginx -v
nginx version: nginx/1.6.2

至此,nginx编译且安装成功

4 配置nginx

创建用户

[root@lsdBKusFRn nginx-1.6.2]# /usr/sbin/groupadd www 
[root@lsdBKusFRn nginx-1.6.2]# /usr/sbin/useradd -g www www

修改nginx的配置文件/usr/local/webserver/nginx/conf/nginx.conf,改为以下内容

user www www;
worker_processes 2; #设置值和CPU核心数一致
error_log /usr/local/webserver/nginx/logs/nginx_error.log crit; #日志位置和日志级别
pid /usr/local/webserver/nginx/nginx.pid;
#Specifies the value for maximum file descriptors that can be opened by this process.
worker_rlimit_nofile 65535;
events
{
  use epoll;
  worker_connections 65535;
}
http
{
  include mime.types;
  default_type application/octet-stream;
  log_format main  '$remote_addr - $remote_user [$time_local] "$request" '
               '$status $body_bytes_sent "$http_referer" '
               '"$http_user_agent" $http_x_forwarded_for';
  
#charset gb2312;
     
  server_names_hash_bucket_size 128;
  client_header_buffer_size 32k;
  large_client_header_buffers 4 32k;
  client_max_body_size 8m;
     
  sendfile on;
  tcp_nopush on;
  keepalive_timeout 60;
  tcp_nodelay on;
  fastcgi_connect_timeout 300;
  fastcgi_send_timeout 300;
  fastcgi_read_timeout 300;
  fastcgi_buffer_size 64k;
  fastcgi_buffers 4 64k;
  fastcgi_busy_buffers_size 128k;
  fastcgi_temp_file_write_size 128k;
  gzip on; 
  gzip_min_length 1k;
  gzip_buffers 4 16k;
  gzip_http_version 1.0;
  gzip_comp_level 2;
  gzip_types text/plain application/x-javascript text/css application/xml;
  gzip_vary on;
 
  #limit_zone crawler $binary_remote_addr 10m;
 #下面是server虚拟主机的配置
 server
  {
    listen 80;#监听端口
    server_name localhost;#域名
    index index.html index.htm index.php;
    root /usr/local/webserver/nginx/html;#站点目录
      location ~ .*\.(php|php5)?$
    {
      #fastcgi_pass unix:/tmp/php-cgi.sock;
      fastcgi_pass 127.0.0.1:9000;
      fastcgi_index index.php;
      include fastcgi.conf;
    }
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico)$
    {
      expires 30d;
  # access_log off;
    }
    location ~ .*\.(js|css)?$
    {
      expires 15d;
   # access_log off;
    }
    access_log off;
  }

}

校验配置文件的正确性

[root@lsdBKusFRn conf]# /usr/local/webserver/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/webserver/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/webserver/nginx/conf/nginx.conf test is successful

启动nginx

[root@lsdBKusFRn conf]# /usr/local/webserver/nginx/sbin/nginx

访问站点,端口是80

 至此,nginx已经完成了基本配置

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

looken1024

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值