前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >nginx基础14

nginx基础14

作者头像
franket
发布2022-05-12 23:09:19
2370
发布2022-05-12 23:09:19
举报
文章被收录于专栏:技术杂记技术杂记

Nginx 版本变更

准备好另一个版本的Nginx

根据上面的步骤准备好另一个版本的Nginx

代码语言:javascript
复制
wget  http://nginx.org/download/nginx-1.8.0.tar.gz
tar -zxvf nginx-1.8.0.tar.gz 
./configure 
make 

此时 objs 目录中有一个不同版本的 nginx

代码语言:javascript
复制
[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 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Nginx 版本变更
    • 准备好另一个版本的Nginx
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档