根据上面的步骤准备好另一个版本的Nginx
wget http://nginx.org/download/nginx-1.8.0.tar.gz
tar -zxvf nginx-1.8.0.tar.gz
./configure
make
此时 objs 目录中有一个不同版本的 nginx
[root@h102 nginx-1.8.0]# ll objs/
total 3276
-rw-r--r-- 1 root root 16436 Oct 9 19:15 autoconf.err
-rw-r--r-- 1 root root 36750 Oct 9 19:15 Makefile
-rwxr-xr-x 1 root root 3234515 Oct 9 19:15 nginx
-rw-r--r-- 1 root root 5253 Oct 9 19:15 nginx.8
-rw-r--r-- 1 root root 5952 Oct 9 19:15 ngx_auto_config.h
-rw-r--r-- 1 root root 657 Oct 9 19:14 ngx_auto_headers.h
-rw-r--r-- 1 root root 3812 Oct 9 19:15 ngx_modules.c
-rw-r--r-- 1 root root 30344 Oct 9 19:15 ngx_modules.o
drwxr-xr-x 8 root root 4096 Oct 9 19:15 src
[root@h102 nginx-1.8.0]# file objs/nginx
objs/nginx: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
[root@h102 nginx-1.8.0]# objs/nginx -v
nginx version: nginx/1.8.0
[root@h102 nginx-1.8.0]# objs/nginx -V
nginx version: nginx/1.8.0
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
configure arguments:
[root@h102 nginx-1.8.0]#
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。