Nginx:源码包安装 on RHEL6
必要的软件:
PCRE
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
[root@linuxme ~]# ls /etc/yum.repos.d/ CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo [root@linuxme ~]# [root@linuxme nginx-1.11.3]# yum list | grep --color pcre pcre.x86_64 7.8-7.el6 @base pcre.i686 7.8-7.el6 base pcre-devel.i686 7.8-7.el6 base pcre-devel.x86_64 7.8-7.el6 base pcre-static.x86_64 7.8-7.el6 base [root@linuxme nginx-1.11.3]# yum install pcre* Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.163.com * updates: mirrors.aliyun.com Setting up Install Process Package pcre-7.8-7.el6.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package pcre-devel.x86_64 0:7.8-7.el6 will be installed ---> Package pcre-static.x86_64 0:7.8-7.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================== Installing: pcre-devel x86_64 7.8-7.el6 base 320 k pcre-static x86_64 7.8-7.el6 base 83 k Transaction Summary =============================================================================================================================================== Install 2 Package(s) Total download size: 403 k Installed size: 1.2 M Is this ok [y/N]: y Downloading Packages: (1/2): pcre-devel-7.8-7.el6.x86_64.rpm | 320 kB 00:00 (2/2): pcre-static-7.8-7.el6.x86_64.rpm | 83 kB 00:00 ----------------------------------------------------------------------------------------------------------------------------------------------- Total 387 kB/s | 403 kB 00:01 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : pcre-devel-7.8-7.el6.x86_64 1/2 Installing : pcre-static-7.8-7.el6.x86_64 2/2 Verifying : pcre-static-7.8-7.el6.x86_64 1/2 Verifying : pcre-devel-7.8-7.el6.x86_64 2/2 Installed: pcre-devel.x86_64 0:7.8-7.el6 pcre-static.x86_64 0:7.8-7.el6 Complete! [root@linuxme nginx-1.11.3]# |
OPENSSL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
[root@linuxme ~]# yum list | grep --color openssl openssl.x86_64 1.0.0-20.el6_2.5 @anaconda-CentOS-201207061011.x86_64/6.3 krb5-pkinit-openssl.x86_64 1.10.3-57.el6 base openssl.i686 1.0.1e-48.el6_8.1 updates openssl.x86_64 1.0.1e-48.el6_8.1 updates openssl-devel.i686 1.0.1e-48.el6_8.1 updates openssl-devel.x86_64 1.0.1e-48.el6_8.1 updates openssl-perl.x86_64 1.0.1e-48.el6_8.1 updates openssl-static.x86_64 1.0.1e-48.el6_8.1 updates openssl098e.i686 0.9.8e-20.el6.centos.1 base openssl098e.x86_64 0.9.8e-20.el6.centos.1 base xmlsec1-openssl.i686 1.2.20-4.el6 base xmlsec1-openssl.x86_64 1.2.20-4.el6 base xmlsec1-openssl-devel.i686 1.2.20-4.el6 base xmlsec1-openssl-devel.x86_64 1.2.20-4.el6 base [root@linuxme ~]# [root@linuxme ~]# yum install -y openssl* Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.163.com * updates: mirrors.aliyun.com Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package openssl.x86_64 0:1.0.0-20.el6_2.5 will be updated ---> Package openssl.x86_64 0:1.0.1e-48.el6_8.1 will be an update ---> Package openssl-devel.x86_64 0:1.0.1e-48.el6_8.1 will be installed --> Processing Dependency: zlib-devel for package: openssl-devel-1.0.1e-48.el6_8.1.x86_64 --> Processing Dependency: krb5-devel for package: openssl-devel-1.0.1e-48.el6_8.1.x86_64 ---> Package openssl-perl.x86_64 0:1.0.1e-48.el6_8.1 will be installed --> Processing Dependency: perl(WWW::Curl::Easy) for package: openssl-perl-1.0.1e-48.el6_8.1.x86_64 ---> Package openssl-static.x86_64 0:1.0.1e-48.el6_8.1 will be installed ---> Package openssl098e.x86_64 0:0.9.8e-20.el6.centos.1 will be installed --> Running transaction check ---> Package krb5-devel.x86_64 0:1.10.3-57.el6 will be installed --> Processing Dependency: krb5-libs = 1.10.3-57.el6 for package: krb5-devel-1.10.3-57.el6.x86_64 --> Processing Dependency: libselinux-devel for package: krb5-devel-1.10.3-57.el6.x86_64 --> Processing Dependency: libcom_err-devel for package: krb5-devel-1.10.3-57.el6.x86_64 --> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.10.3-57.el6.x86_64 --> Processing Dependency: libkdb5.so.6()(64bit) for package: krb5-devel-1.10.3-57.el6.x86_64 ---> Package perl-WWW-Curl.x86_64 0:4.09-4.el6 will be installed ---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed --> Processing Dependency: zlib = 1.2.3-29.el6 for package: zlib-devel-1.2.3-29.el6.x86_64 --> Running transaction check ---> Package keyutils-libs-devel.x86_64 0:1.4-5.el6 will be installed --> Processing Dependency: keyutils-libs = 1.4-5.el6 for package: keyutils-libs-devel-1.4-5.el6.x86_64 ---> Package krb5-libs.x86_64 0:1.9-33.el6 will be updated --> Processing Dependency: libkdb5.so.5()(64bit) for package: krb5-workstation-1.9-33.el6.x86_64 --> Processing Dependency: libkdb5.so.5(kdb5_5_MIT)(64bit) for package: krb5-workstation-1.9-33.el6.x86_64 --> Processing Dependency: krb5-libs = 1.9-33.el6 for package: krb5-workstation-1.9-33.el6.x86_64 ---> Package krb5-libs.x86_64 0:1.10.3-57.el6 will be an update ---> Package libcom_err-devel.x86_64 0:1.41.12-22.el6 will be installed --> Processing Dependency: libcom_err = 1.41.12-22.el6 for package: libcom_err-devel-1.41.12-22.el6.x86_64 ---> Package libselinux-devel.x86_64 0:2.0.94-7.el6 will be installed --> Processing Dependency: libselinux = 2.0.94-7.el6 for package: libselinux-devel-2.0.94-7.el6.x86_64 --> Processing Dependency: libsepol-devel >= 2.0.32-1 for package: libselinux-devel-2.0.94-7.el6.x86_64 --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.0.94-7.el6.x86_64 ---> Package zlib.x86_64 0:1.2.3-27.el6 will be updated ---> Package zlib.x86_64 0:1.2.3-29.el6 will be an update --> Running transaction check ---> Package keyutils-libs.x86_64 0:1.4-4.el6 will be updated --> Processing Dependency: keyutils-libs = 1.4-4.el6 for package: keyutils-1.4-4.el6.x86_64 ---> Package keyutils-libs.x86_64 0:1.4-5.el6 will be an update ---> Package krb5-workstation.x86_64 0:1.9-33.el6 will be updated ---> Package krb5-workstation.x86_64 0:1.10.3-57.el6 will be an update ---> Package libcom_err.x86_64 0:1.41.12-12.el6 will be updated --> Processing Dependency: libcom_err = 1.41.12-12.el6 for package: e2fsprogs-1.41.12-12.el6.x86_64 --> Processing Dependency: libcom_err = 1.41.12-12.el6 for package: libss-1.41.12-12.el6.x86_64 --> Processing Dependency: libcom_err = 1.41.12-12.el6 for package: e2fsprogs-libs-1.41.12-12.el6.x86_64 ---> Package libcom_err.x86_64 0:1.41.12-22.el6 will be an update ---> Package libselinux.x86_64 0:2.0.94-5.3.el6 will be updated --> Processing Dependency: libselinux = 2.0.94-5.3.el6 for package: libselinux-utils-2.0.94-5.3.el6.x86_64 --> Processing Dependency: libselinux = 2.0.94-5.3.el6 for package: libselinux-python-2.0.94-5.3.el6.x86_64 ---> Package libselinux.x86_64 0:2.0.94-7.el6 will be an update ---> Package libsepol-devel.x86_64 0:2.0.41-4.el6 will be installed --> Running transaction check ---> Package e2fsprogs.x86_64 0:1.41.12-12.el6 will be updated ---> Package e2fsprogs.x86_64 0:1.41.12-22.el6 will be an update ---> Package e2fsprogs-libs.x86_64 0:1.41.12-12.el6 will be updated ---> Package e2fsprogs-libs.x86_64 0:1.41.12-22.el6 will be an update ---> Package keyutils.x86_64 0:1.4-4.el6 will be updated ---> Package keyutils.x86_64 0:1.4-5.el6 will be an update ---> Package libselinux-python.x86_64 0:2.0.94-5.3.el6 will be updated ---> Package libselinux-python.x86_64 0:2.0.94-7.el6 will be an update ---> Package libselinux-utils.x86_64 0:2.0.94-5.3.el6 will be updated ---> Package libselinux-utils.x86_64 0:2.0.94-7.el6 will be an update ---> Package libss.x86_64 0:1.41.12-12.el6 will be updated ---> Package libss.x86_64 0:1.41.12-22.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================== Installing: openssl-devel x86_64 1.0.1e-48.el6_8.1 updates 1.2 M openssl-perl x86_64 1.0.1e-48.el6_8.1 updates 56 k openssl-static x86_64 1.0.1e-48.el6_8.1 updates 997 k openssl098e x86_64 0.9.8e-20.el6.centos.1 base 762 k Updating: openssl x86_64 1.0.1e-48.el6_8.1 updates 1.5 M Installing for dependencies: keyutils-libs-devel x86_64 1.4-5.el6 base 29 k krb5-devel x86_64 1.10.3-57.el6 base 504 k libcom_err-devel x86_64 1.41.12-22.el6 base 33 k libselinux-devel x86_64 2.0.94-7.el6 base 137 k libsepol-devel x86_64 2.0.41-4.el6 base 64 k perl-WWW-Curl x86_64 4.09-4.el6 base 47 k zlib-devel x86_64 1.2.3-29.el6 base 44 k Updating for dependencies: e2fsprogs x86_64 1.41.12-22.el6 base 554 k e2fsprogs-libs x86_64 1.41.12-22.el6 base 121 k keyutils x86_64 1.4-5.el6 base 39 k keyutils-libs x86_64 1.4-5.el6 base 20 k krb5-libs x86_64 1.10.3-57.el6 base 770 k krb5-workstation x86_64 1.10.3-57.el6 base 813 k libcom_err x86_64 1.41.12-22.el6 base 37 k libselinux x86_64 2.0.94-7.el6 base 109 k libselinux-python x86_64 2.0.94-7.el6 base 203 k libselinux-utils x86_64 2.0.94-7.el6 base 82 k libss x86_64 1.41.12-22.el6 base 42 k zlib x86_64 1.2.3-29.el6 base 73 k Transaction Summary =============================================================================================================================================== Install 11 Package(s) Upgrade 13 Package(s) Total download size: 8.1 M Downloading Packages: (1/24): e2fsprogs-1.41.12-22.el6.x86_64.rpm | 554 kB 00:01 (2/24): e2fsprogs-libs-1.41.12-22.el6.x86_64.rpm | 121 kB 00:00 (3/24): keyutils-1.4-5.el6.x86_64.rpm | 39 kB 00:00 (4/24): keyutils-libs-1.4-5.el6.x86_64.rpm | 20 kB 00:00 (5/24): keyutils-libs-devel-1.4-5.el6.x86_64.rpm | 29 kB 00:00 (6/24): krb5-devel-1.10.3-57.el6.x86_64.rpm | 504 kB 00:01 (7/24): krb5-libs-1.10.3-57.el6.x86_64.rpm | 770 kB 00:01 (8/24): krb5-workstation-1.10.3-57.el6.x86_64.rpm | 813 kB 00:02 (9/24): libcom_err-1.41.12-22.el6.x86_64.rpm | 37 kB 00:00 (10/24): libcom_err-devel-1.41.12-22.el6.x86_64.rpm | 33 kB 00:00 (11/24): libselinux-2.0.94-7.el6.x86_64.rpm | 109 kB 00:00 (12/24): libselinux-devel-2.0.94-7.el6.x86_64.rpm | 137 kB 00:00 (13/24): libselinux-python-2.0.94-7.el6.x86_64.rpm | 203 kB 00:00 (14/24): libselinux-utils-2.0.94-7.el6.x86_64.rpm | 82 kB 00:00 (15/24): libsepol-devel-2.0.41-4.el6.x86_64.rpm | 64 kB 00:00 (16/24): libss-1.41.12-22.el6.x86_64.rpm | 42 kB 00:00 (17/24): openssl-1.0.1e-48.el6_8.1.x86_64.rpm | 1.5 MB 00:03 (18/24): openssl-devel-1.0.1e-48.el6_8.1.x86_64.rpm | 1.2 MB 00:02 (19/24): openssl-perl-1.0.1e-48.el6_8.1.x86_64.rpm | 56 kB 00:00 (20/24): openssl-static-1.0.1e-48.el6_8.1.x86_64.rpm | 997 kB 00:02 (21/24): openssl098e-0.9.8e-20.el6.centos.1.x86_64.rpm | 762 kB 00:01 (22/24): perl-WWW-Curl-4.09-4.el6.x86_64.rpm | 47 kB 00:00 (23/24): zlib-1.2.3-29.el6.x86_64.rpm | 73 kB 00:00 (24/24): zlib-devel-1.2.3-29.el6.x86_64.rpm | 44 kB 00:00 ----------------------------------------------------------------------------------------------------------------------------------------------- Total 419 kB/s | 8.1 MB 00:19 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : libcom_err-1.41.12-22.el6.x86_64 1/37 Updating : libselinux-2.0.94-7.el6.x86_64 2/37 Updating : keyutils-libs-1.4-5.el6.x86_64 3/37 Updating : krb5-libs-1.10.3-57.el6.x86_64 4/37 Updating : zlib-1.2.3-29.el6.x86_64 5/37 Updating : openssl-1.0.1e-48.el6_8.1.x86_64 6/37 Updating : libss-1.41.12-22.el6.x86_64 7/37 Installing : zlib-devel-1.2.3-29.el6.x86_64 8/37 Installing : keyutils-libs-devel-1.4-5.el6.x86_64 9/37 Installing : libcom_err-devel-1.41.12-22.el6.x86_64 10/37 Updating : e2fsprogs-libs-1.41.12-22.el6.x86_64 11/37 Installing : libsepol-devel-2.0.41-4.el6.x86_64 12/37 Installing : libselinux-devel-2.0.94-7.el6.x86_64 13/37 Installing : krb5-devel-1.10.3-57.el6.x86_64 14/37 Installing : openssl-devel-1.0.1e-48.el6_8.1.x86_64 15/37 Installing : perl-WWW-Curl-4.09-4.el6.x86_64 16/37 Installing : openssl-perl-1.0.1e-48.el6_8.1.x86_64 17/37 Installing : openssl-static-1.0.1e-48.el6_8.1.x86_64 18/37 Updating : e2fsprogs-1.41.12-22.el6.x86_64 19/37 Updating : krb5-workstation-1.10.3-57.el6.x86_64 20/37 Installing : openssl098e-0.9.8e-20.el6.centos.1.x86_64 21/37 Updating : keyutils-1.4-5.el6.x86_64 22/37 Updating : libselinux-python-2.0.94-7.el6.x86_64 23/37 Updating : libselinux-utils-2.0.94-7.el6.x86_64 24/37 Cleanup : krb5-workstation-1.9-33.el6.x86_64 25/37 Cleanup : e2fsprogs-1.41.12-12.el6.x86_64 26/37 Cleanup : openssl-1.0.0-20.el6_2.5.x86_64 27/37 Cleanup : krb5-libs-1.9-33.el6.x86_64 28/37 Cleanup : e2fsprogs-libs-1.41.12-12.el6.x86_64 29/37 Cleanup : libss-1.41.12-12.el6.x86_64 30/37 Cleanup : libselinux-utils-2.0.94-5.3.el6.x86_64 31/37 Cleanup : libselinux-python-2.0.94-5.3.el6.x86_64 32/37 Cleanup : keyutils-1.4-4.el6.x86_64 33/37 Cleanup : keyutils-libs-1.4-4.el6.x86_64 34/37 Cleanup : libselinux-2.0.94-5.3.el6.x86_64 35/37 Cleanup : libcom_err-1.41.12-12.el6.x86_64 36/37 Cleanup : zlib-1.2.3-27.el6.x86_64 37/37 Verifying : perl-WWW-Curl-4.09-4.el6.x86_64 1/37 Verifying : keyutils-libs-devel-1.4-5.el6.x86_64 2/37 Verifying : libss-1.41.12-22.el6.x86_64 3/37 Verifying : zlib-1.2.3-29.el6.x86_64 4/37 Verifying : openssl098e-0.9.8e-20.el6.centos.1.x86_64 5/37 Verifying : openssl-1.0.1e-48.el6_8.1.x86_64 6/37 Verifying : zlib-devel-1.2.3-29.el6.x86_64 7/37 Verifying : krb5-devel-1.10.3-57.el6.x86_64 8/37 Verifying : keyutils-libs-1.4-5.el6.x86_64 9/37 Verifying : openssl-static-1.0.1e-48.el6_8.1.x86_64 10/37 Verifying : libcom_err-devel-1.41.12-22.el6.x86_64 11/37 Verifying : keyutils-1.4-5.el6.x86_64 12/37 Verifying : openssl-perl-1.0.1e-48.el6_8.1.x86_64 13/37 Verifying : e2fsprogs-1.41.12-22.el6.x86_64 14/37 Verifying : krb5-workstation-1.10.3-57.el6.x86_64 15/37 Verifying : openssl-devel-1.0.1e-48.el6_8.1.x86_64 16/37 Verifying : libselinux-python-2.0.94-7.el6.x86_64 17/37 Verifying : krb5-libs-1.10.3-57.el6.x86_64 18/37 Verifying : libsepol-devel-2.0.41-4.el6.x86_64 19/37 Verifying : libselinux-utils-2.0.94-7.el6.x86_64 20/37 Verifying : libselinux-2.0.94-7.el6.x86_64 21/37 Verifying : libcom_err-1.41.12-22.el6.x86_64 22/37 Verifying : libselinux-devel-2.0.94-7.el6.x86_64 23/37 Verifying : e2fsprogs-libs-1.41.12-22.el6.x86_64 24/37 Verifying : libselinux-python-2.0.94-5.3.el6.x86_64 25/37 Verifying : krb5-libs-1.9-33.el6.x86_64 26/37 Verifying : zlib-1.2.3-27.el6.x86_64 27/37 Verifying : libselinux-2.0.94-5.3.el6.x86_64 28/37 Verifying : openssl-1.0.0-20.el6_2.5.x86_64 29/37 Verifying : libss-1.41.12-12.el6.x86_64 30/37 Verifying : e2fsprogs-1.41.12-12.el6.x86_64 31/37 Verifying : keyutils-libs-1.4-4.el6.x86_64 32/37 Verifying : libcom_err-1.41.12-12.el6.x86_64 33/37 Verifying : libselinux-utils-2.0.94-5.3.el6.x86_64 34/37 Verifying : e2fsprogs-libs-1.41.12-12.el6.x86_64 35/37 Verifying : keyutils-1.4-4.el6.x86_64 36/37 Verifying : krb5-workstation-1.9-33.el6.x86_64 37/37 Installed: openssl-devel.x86_64 0:1.0.1e-48.el6_8.1 openssl-perl.x86_64 0:1.0.1e-48.el6_8.1 openssl-static.x86_64 0:1.0.1e-48.el6_8.1 openssl098e.x86_64 0:0.9.8e-20.el6.centos.1 Dependency Installed: keyutils-libs-devel.x86_64 0:1.4-5.el6 krb5-devel.x86_64 0:1.10.3-57.el6 libcom_err-devel.x86_64 0:1.41.12-22.el6 libselinux-devel.x86_64 0:2.0.94-7.el6 libsepol-devel.x86_64 0:2.0.41-4.el6 perl-WWW-Curl.x86_64 0:4.09-4.el6 zlib-devel.x86_64 0:1.2.3-29.el6 Updated: openssl.x86_64 0:1.0.1e-48.el6_8.1 Dependency Updated: e2fsprogs.x86_64 0:1.41.12-22.el6 e2fsprogs-libs.x86_64 0:1.41.12-22.el6 keyutils.x86_64 0:1.4-5.el6 keyutils-libs.x86_64 0:1.4-5.el6 krb5-libs.x86_64 0:1.10.3-57.el6 krb5-workstation.x86_64 0:1.10.3-57.el6 libcom_err.x86_64 0:1.41.12-22.el6 libselinux.x86_64 0:2.0.94-7.el6 libselinux-python.x86_64 0:2.0.94-7.el6 libselinux-utils.x86_64 0:2.0.94-7.el6 libss.x86_64 0:1.41.12-22.el6 zlib.x86_64 0:1.2.3-29.el6 Complete! [root@linuxme ~]# |
GCC
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
[root@linuxme nginx-1.11.3]# yum install -y gcc Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.163.com * updates: mirrors.aliyun.com Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package gcc.x86_64 0:4.4.7-17.el6 will be installed --> Processing Dependency: libgomp = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.x86_64 --> Processing Dependency: cpp = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.x86_64 --> Processing Dependency: libgcc >= 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.x86_64 --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-17.el6.x86_64 --> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-17.el6.x86_64 --> Running transaction check ---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed --> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64 --> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64 ---> Package cpp.x86_64 0:4.4.7-17.el6 will be installed --> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-17.el6.x86_64 ---> Package glibc-devel.x86_64 0:2.12-1.192.el6 will be installed --> Processing Dependency: glibc-headers = 2.12-1.192.el6 for package: glibc-devel-2.12-1.192.el6.x86_64 --> Processing Dependency: glibc = 2.12-1.192.el6 for package: glibc-devel-2.12-1.192.el6.x86_64 --> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.192.el6.x86_64 ---> Package libgcc.x86_64 0:4.4.6-4.el6 will be updated ---> Package libgcc.x86_64 0:4.4.7-17.el6 will be an update ---> Package libgomp.x86_64 0:4.4.6-4.el6 will be updated ---> Package libgomp.x86_64 0:4.4.7-17.el6 will be an update --> Running transaction check ---> Package glibc.x86_64 0:2.12-1.80.el6 will be updated --> Processing Dependency: glibc = 2.12-1.80.el6 for package: glibc-common-2.12-1.80.el6.x86_64 ---> Package glibc.x86_64 0:2.12-1.192.el6 will be an update ---> Package glibc-headers.x86_64 0:2.12-1.192.el6 will be installed --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.192.el6.x86_64 --> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.192.el6.x86_64 ---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed ---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed --> Running transaction check ---> Package glibc-common.x86_64 0:2.12-1.80.el6 will be updated ---> Package glibc-common.x86_64 0:2.12-1.192.el6 will be an update --> Processing Dependency: tzdata >= 2015g-4 for package: glibc-common-2.12-1.192.el6.x86_64 ---> Package kernel-headers.x86_64 0:2.6.32-642.3.1.el6 will be installed --> Running transaction check ---> Package tzdata.noarch 0:2012c-1.el6 will be updated ---> Package tzdata.noarch 0:2016f-1.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================== Installing: gcc x86_64 4.4.7-17.el6 base 10 M Installing for dependencies: cloog-ppl x86_64 0.15.7-1.2.el6 base 93 k cpp x86_64 4.4.7-17.el6 base 3.7 M glibc-devel x86_64 2.12-1.192.el6 base 988 k glibc-headers x86_64 2.12-1.192.el6 base 617 k kernel-headers x86_64 2.6.32-642.3.1.el6 updates 4.4 M mpfr x86_64 2.4.1-6.el6 base 157 k ppl x86_64 0.10.2-11.el6 base 1.3 M Updating for dependencies: glibc x86_64 2.12-1.192.el6 base 3.8 M glibc-common x86_64 2.12-1.192.el6 base 14 M libgcc x86_64 4.4.7-17.el6 base 103 k libgomp x86_64 4.4.7-17.el6 base 134 k tzdata noarch 2016f-1.el6 updates 452 k Transaction Summary =============================================================================================================================================== Install 8 Package(s) Upgrade 5 Package(s) Total download size: 40 M Downloading Packages: (1/13): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm | 93 kB 00:00 (2/13): cpp-4.4.7-17.el6.x86_64.rpm | 3.7 MB 00:06 (3/13): gcc-4.4.7-17.el6.x86_64.rpm | 10 MB 00:15 (4/13): glibc-2.12-1.192.el6.x86_64.rpm | 3.8 MB 00:05 (5/13): glibc-common-2.12-1.192.el6.x86_64.rpm | 14 MB 00:23 (6/13): glibc-devel-2.12-1.192.el6.x86_64.rpm | 988 kB 00:01 (7/13): glibc-headers-2.12-1.192.el6.x86_64.rpm | 617 kB 00:00 (8/13): kernel-headers-2.6.32-642.3.1.el6.x86_64.rpm | 4.4 MB 00:07 (9/13): libgcc-4.4.7-17.el6.x86_64.rpm | 103 kB 00:00 (10/13): libgomp-4.4.7-17.el6.x86_64.rpm | 134 kB 00:00 (11/13): mpfr-2.4.1-6.el6.x86_64.rpm | 157 kB 00:00 (12/13): ppl-0.10.2-11.el6.x86_64.rpm | 1.3 MB 00:01 (13/13): tzdata-2016f-1.el6.noarch.rpm | 452 kB 00:00 ----------------------------------------------------------------------------------------------------------------------------------------------- Total 645 kB/s | 40 MB 01:03 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : libgcc-4.4.7-17.el6.x86_64 1/18 Installing : kernel-headers-2.6.32-642.3.1.el6.x86_64 2/18 Updating : tzdata-2016f-1.el6.noarch 3/18 Updating : glibc-common-2.12-1.192.el6.x86_64 4/18 Updating : glibc-2.12-1.192.el6.x86_64 5/18 Installing : glibc-headers-2.12-1.192.el6.x86_64 6/18 Installing : glibc-devel-2.12-1.192.el6.x86_64 7/18 Installing : ppl-0.10.2-11.el6.x86_64 8/18 Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 9/18 Installing : mpfr-2.4.1-6.el6.x86_64 10/18 Installing : cpp-4.4.7-17.el6.x86_64 11/18 Updating : libgomp-4.4.7-17.el6.x86_64 12/18 Installing : gcc-4.4.7-17.el6.x86_64 13/18 Cleanup : libgomp-4.4.6-4.el6.x86_64 14/18 Cleanup : glibc-common-2.12-1.80.el6.x86_64 15/18 Cleanup : glibc-2.12-1.80.el6.x86_64 16/18 Cleanup : tzdata-2012c-1.el6.noarch 17/18 Cleanup : libgcc-4.4.6-4.el6.x86_64 18/18 Verifying : glibc-devel-2.12-1.192.el6.x86_64 1/18 Verifying : glibc-headers-2.12-1.192.el6.x86_64 2/18 Verifying : libgcc-4.4.7-17.el6.x86_64 3/18 Verifying : ppl-0.10.2-11.el6.x86_64 4/18 Verifying : glibc-2.12-1.192.el6.x86_64 5/18 Verifying : mpfr-2.4.1-6.el6.x86_64 6/18 Verifying : tzdata-2016f-1.el6.noarch 7/18 Verifying : gcc-4.4.7-17.el6.x86_64 8/18 Verifying : kernel-headers-2.6.32-642.3.1.el6.x86_64 9/18 Verifying : libgomp-4.4.7-17.el6.x86_64 10/18 Verifying : glibc-common-2.12-1.192.el6.x86_64 11/18 Verifying : cpp-4.4.7-17.el6.x86_64 12/18 Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 13/18 Verifying : tzdata-2012c-1.el6.noarch 14/18 Verifying : libgcc-4.4.6-4.el6.x86_64 15/18 Verifying : glibc-2.12-1.80.el6.x86_64 16/18 Verifying : libgomp-4.4.6-4.el6.x86_64 17/18 Verifying : glibc-common-2.12-1.80.el6.x86_64 18/18 Installed: gcc.x86_64 0:4.4.7-17.el6 Dependency Installed: cloog-ppl.x86_64 0:0.15.7-1.2.el6 cpp.x86_64 0:4.4.7-17.el6 glibc-devel.x86_64 0:2.12-1.192.el6 glibc-headers.x86_64 0:2.12-1.192.el6 kernel-headers.x86_64 0:2.6.32-642.3.1.el6 mpfr.x86_64 0:2.4.1-6.el6 ppl.x86_64 0:0.10.2-11.el6 Dependency Updated: glibc.x86_64 0:2.12-1.192.el6 glibc-common.x86_64 0:2.12-1.192.el6 libgcc.x86_64 0:4.4.7-17.el6 libgomp.x86_64 0:4.4.7-17.el6 tzdata.noarch 0:2016f-1.el6 Complete! [root@linuxme nginx-1.11.3]# |
安装Nginx:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[root@linuxme ~]# mkdir /software [root@linuxme ~]# cd /software [root@linuxme software]# [root@linuxme software]# ls -ltr total 920 -rw-r--r-- 1 root root 938045 Aug 15 20:52 nginx-1.11.3.tar.gz [root@linuxme software]# [root@linuxme software]# tar -xzf nginx-1.11.3.tar.gz [root@linuxme software]# ls -ltr total 924 drwxr-xr-x 8 1001 1001 4096 Jul 26 21:59 nginx-1.11.3 -rw-r--r-- 1 root root 938045 Aug 15 20:52 nginx-1.11.3.tar.gz [root@linuxme software]# [root@linuxme nginx-1.11.3]# ls auto CHANGES CHANGES.ru conf configure contrib html LICENSE man README src [root@linuxme nginx-1.11.3]# |
编译:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
[root@linuxme nginx-1.11.3]# ./configure --prefix=/usr/local/nginx-1.11.3 \ > --with-http_ssl_module --with-http_stub_status_module --with-pcre (... ... 过多的输出。) checking for OS + Linux 2.6.32-279.el6.x86_64 x86_64 checking for C compiler ... found + using GNU C compiler + gcc version: 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) checking for gcc -pipe switch ... found checking for -Wl,-E switch ... found checking for gcc builtin atomic operations ... found checking for C99 variadic macros ... found checking for gcc variadic macros ... found checking for gcc builtin 64 bit byteswap ... 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 EPOLLEXCLUSIVE ... not found checking for O_PATH ... not 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_REUSEPORT ... found checking for SO_ACCEPTFILTER ... not found checking for SO_BINDANY ... not found checking for IP_BIND_ADDRESS_NO_PORT ... not found checking for IP_TRANSPARENT ... found checking for IP_BINDANY ... not found checking for IP_RECVDSTADDR ... not found checking for IP_PKTINFO ... found checking for IPV6_RECVPKTINFO ... found checking for TCP_DEFER_ACCEPT ... found checking for TCP_KEEPIDLE ... found checking for TCP_FASTOPEN ... not found checking for TCP_INFO ... found checking for accept4() ... found checking for eventfd() ... 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 uint32_t ... found 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 pwritev() ... 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 PCRE library ... found checking for PCRE JIT support ... not found checking for OpenSSL library ... found checking for zlib library ... found creating objs/Makefile Configuration summary + using system PCRE library + using system OpenSSL library + using system zlib library nginx path prefix: "/usr/local/nginx-1.11.3" nginx binary file: "/usr/local/nginx-1.11.3/sbin/nginx" nginx modules path: "/usr/local/nginx-1.11.3/modules" nginx configuration prefix: "/usr/local/nginx-1.11.3/conf" nginx configuration file: "/usr/local/nginx-1.11.3/conf/nginx.conf" nginx pid file: "/usr/local/nginx-1.11.3/logs/nginx.pid" nginx error log file: "/usr/local/nginx-1.11.3/logs/error.log" nginx http access log file: "/usr/local/nginx-1.11.3/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@linuxme nginx-1.11.3]# |
安装:make
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
[root@linuxme nginx-1.11.3]# ls /usr/local/ bin etc games include lib lib64 libexec sbin share src [root@linuxme nginx-1.11.3]# [root@linuxme nginx-1.11.3]# make (... ... 过多的输出。) cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \ -o objs/ngx_modules.o \ objs/ngx_modules.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_parse_time.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_sha1.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_rwlock.o \ objs/src/core/ngx_cpuinfo.o \ objs/src/core/ngx_conf_file.o \ objs/src/core/ngx_module.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/core/ngx_syslog.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_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_udp_send.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_dlopen.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/event/ngx_event_openssl.o \ objs/src/event/ngx_event_openssl_stapling.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/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_file_cache.o \ objs/src/http/ngx_http_write_filter_module.o \ objs/src/http/ngx_http_header_filter_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_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_headers_filter_module.o \ objs/src/http/ngx_http_copy_filter_module.o \ objs/src/http/modules/ngx_http_not_modified_filter_module.o \ objs/src/http/modules/ngx_http_static_module.o \ objs/src/http/modules/ngx_http_autoindex_module.o \ objs/src/http/modules/ngx_http_index_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_ssl_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_hash_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/src/http/modules/ngx_http_upstream_zone_module.o \ objs/src/http/modules/ngx_http_stub_status_module.o \ objs/ngx_modules.o \ -ldl -lpthread -lcrypt -lpcre -lssl -lcrypto -ldl -lz \ -Wl,-E sed -e "s|%%PREFIX%%|/usr/local/nginx-1.11.3|" \ -e "s|%%PID_PATH%%|/usr/local/nginx-1.11.3/logs/nginx.pid|" \ -e "s|%%CONF_PATH%%|/usr/local/nginx-1.11.3/conf/nginx.conf|" \ -e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx-1.11.3/logs/error.log|" \ < man/nginx.8 > objs/nginx.8 make[1]: Leaving directory `/software/nginx-1.11.3' [root@linuxme nginx-1.11.3]# |
安装:make install
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
[root@linuxme nginx-1.11.3]# ls /usr/local/ bin etc games include lib lib64 libexec sbin share src [root@linuxme nginx-1.11.3]# [root@linuxme nginx-1.11.3]# make install (... ... 过多的输出。) test -f '/usr/local/nginx-1.11.3/conf/scgi_params' \ || cp conf/scgi_params '/usr/local/nginx-1.11.3/conf' cp conf/scgi_params \ '/usr/local/nginx-1.11.3/conf/scgi_params.default' test -f '/usr/local/nginx-1.11.3/conf/nginx.conf' \ || cp conf/nginx.conf '/usr/local/nginx-1.11.3/conf/nginx.conf' cp conf/nginx.conf '/usr/local/nginx-1.11.3/conf/nginx.conf.default' test -d '/usr/local/nginx-1.11.3/logs' \ || mkdir -p '/usr/local/nginx-1.11.3/logs' test -d '/usr/local/nginx-1.11.3/logs' \ || mkdir -p '/usr/local/nginx-1.11.3/logs' test -d '/usr/local/nginx-1.11.3/html' \ || cp -R html '/usr/local/nginx-1.11.3' test -d '/usr/local/nginx-1.11.3/logs' \ || mkdir -p '/usr/local/nginx-1.11.3/logs' make[1]: Leaving directory `/software/nginx-1.11.3' [root@linuxme nginx-1.11.3]# [root@linuxme nginx-1.11.3]# ls /usr/local/ bin etc games include lib lib64 libexec nginx-1.11.3 sbin share src [root@linuxme nginx-1.11.3]# [root@linuxme nginx-1.11.3]# ls /usr/local/nginx-1.11.3/ conf html logs sbin [root@linuxme nginx-1.11.3]# |
这样,就安装好了。
启动Nginx:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
[root@linuxme nginx-1.11.3]# ps -ef | grep nginx root 6528 2619 0 21:07 pts/0 00:00:00 grep nginx [root@linuxme nginx-1.11.3]# [root@linuxme nginx-1.11.3]# netstat -tupln | grep nginx [root@linuxme nginx-1.11.3]# [root@linuxme nginx-1.11.3]# /usr/local/nginx-1.11.3/sbin/nginx [root@linuxme nginx-1.11.3]# [root@linuxme nginx-1.11.3]# ps -ef | grep nginx root 6532 1 0 21:08 ? 00:00:00 nginx: master process /usr/local/nginx-1.11.3/sbin/nginx nobody 6533 6532 0 21:08 ? 00:00:00 nginx: worker process root 6535 2619 0 21:08 pts/0 00:00:00 grep nginx [root@linuxme nginx-1.11.3]# [root@linuxme nginx-1.11.3]# netstat -tupln | grep nginx tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 6532/nginx [root@linuxme nginx-1.11.3]# |
访问页面:
http://localhost
1 2 3 4 5 6 7 8 |
[root@linuxme nginx-1.11.3]# curl -s http://localhost | grep --color nginx <title>Welcome to nginx!</title> <h1>Welcome to nginx!</h1> <p>If you see this page, the nginx web server is successfully installed and <a href="http://nginx.org/">nginx.org</a>.<br/> <a href="http://nginx.com/">nginx.com</a>.</p> <p><em>Thank you for using nginx.</em></p> [root@linuxme nginx-1.11.3]# |
重置:
1 2 |
[root@linuxme nginx-1.11.3]# /usr/local/nginx-1.11.3/sbin/nginx -s reload [root@linuxme nginx-1.11.3]# |
关闭:
1 2 3 4 5 6 7 8 |
[root@linuxme nginx-1.11.3]# /usr/local/nginx-1.11.3/sbin/nginx -s stop [root@linuxme nginx-1.11.3]# [root@linuxme nginx-1.11.3]# ps -ef | grep nginx root 6571 6550 0 21:10 pts/1 00:00:00 tail -f /usr/local/nginx-1.11.3/logs/access.log /usr/local/nginx-1.11.3/logs/error.log /usr/local/nginx-1.11.3/logs/nginx.pid root 6578 2619 0 21:11 pts/0 00:00:00 grep nginx [root@linuxme nginx-1.11.3]# [root@linuxme nginx-1.11.3]# netstat -tupln | grep nginx [root@linuxme nginx-1.11.3]# |
————————————
Done。
1 thought on “Nginx:源码包安装 on RHEL6”