[root@localhost nginx]# cd pcre-8.37/[root@localhost pcre-8.37]# ./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
7、make
[root@localhost pcre-8.37]# makerm -f pcre_chartables.c
ln -s ./pcre_chartables.c.dist pcre_chartables.c
make all-am
make[1]: 进入目录“/opt/tool/nginx/pcre-8.37”
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
[root@localhost nginx]# cd openssl-1.0.1t/[root@localhost openssl-1.0.1t]# make
making all in crypto...
make[1]: 进入目录“/opt/tool/nginx/openssl-1.0.1t/crypto”
making all in crypto/objects...
make[2]: 进入目录“/opt/tool/nginx/openssl-1.0.1t/crypto/objects”
make[2]: 对“all”无需做任何事。
make[2]: 离开目录“/opt/tool/nginx/openssl-1.0.1t/crypto/objects”
making all in crypto/md4...
make[2]: 进入目录“/opt/tool/nginx/openssl-1.0.1t/crypto/md4”
12、make install
[root@localhost openssl-1.0.1t]# make install
making all in crypto...
make[1]: 进入目录“/opt/tool/nginx/openssl-1.0.1t/crypto”
making all in crypto/objects...
make[2]: 进入目录“/opt/tool/nginx/openssl-1.0.1t/crypto/objects”
make[2]: 对“all”无需做任何事。
make[2]: 离开目录“/opt/tool/nginx/openssl-1.0.1t/crypto/objects”
making all in crypto/md4...
make[2]: 进入目录“/opt/tool/nginx/openssl-1.0.1t/crypto/md4”
make[2]: 对“all”无需做任何事。
make[2]: 离开目录“/opt/tool/nginx/openssl-1.0.1t/crypto/md4”
making all in crypto/md5...
make[2]: 进入目录“/opt/tool/nginx/openssl-1.0.1t/crypto/md5”
make[2]: 对“all”无需做任何事。
make[2]: 离开目录“/opt/tool/nginx/openssl-1.0.1t/crypto/md5”
[root@localhost zlib-1.2.8]# ./configure
Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.2.8 with gcc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf()in stdio.h... Yes.
Checking forreturn value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
[root@localhost nginx]# cd nginx-1.20.1/[root@localhost nginx-1.20.1]# ls
auto CHANGES CHANGES.ru conf configure contrib html LICENSE man README src
[root@localhost nginx-1.20.1]# ./configure
checking for OS
+ Linux 3.10.0-693.el7.x86_64 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.8.5 20150623(Red Hat 4.8.5-44)(GCC)
checking for gcc -pipe switch ... found
checking for -Wl,-E switch ... found
[root@localhost nginx-1.20.1]# cd /usr/local/nginx/[root@localhost nginx]# pwd
/usr/local/nginx
[root@localhost nginx]# ls
conf html logs sbin
23、cd /usr/local/nginx/sbin
[root@localhost nginx-1.20.1]# cd /usr/local/nginx/[root@localhost nginx]# pwd
/usr/local/nginx
[root@localhost nginx]# ls
conf html logs sbin
[root@localhost nginx]# cd sbin/[root@localhost sbin]# ls
nginx
24、./nginx
[root@localhost nginx-1.20.1]# cd /usr/local/nginx/[root@localhost nginx]# pwd
/usr/local/nginx
[root@localhost nginx]# ls
conf html logs sbin
[root@localhost nginx]# cd sbin/[root@localhost sbin]# ls
nginx
[root@localhost sbin]# pwd
/usr/local/nginx/sbin
[root@localhost sbin]# ./nginx
[root@localhost sbin]#