`
avoidxx
  • 浏览: 12803 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

centos下的nginx升级

阅读更多

Upgrade nginx from v1.0.15 to v1.4.7

 

1. install dependencies

 

yum -y install perl-devel perl-ExtUtils-Embed geoip-devel gd-devel pcre-devel openssl openssl-devel libxml2-devel libxslt-devel

 

 

2. download nginx 1.4.7 source code

 

wget http://nginx.org/download/nginx-1.4.7.tar.gz

tar zxvf nginx-1.4.7.tar.gz

cd nginx-1.4.7

 

 

3. get current configure params

 

nginx -V

 

my current configure params:

--prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-debug --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=-Wl,-E

 

 

4. config

 

./configure --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-debug --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=-Wl,-E

 

5. make

 

make

 

 

6. backup old file and replace old nginx with the new one

 

mv /usr/sbin/nginx /usr/sbin/nginx_old

cp -f objs/nginx /usr/sbin/nginx

 

 

7. make install

 

make install

分享到:
评论

相关推荐

    Centos7环境下Nginx版本升级方式及步骤

    此手册主要用于记录个人进行nginx升级的步骤和心得,介绍了2种升级方式。 YUM upgrade升级:本方式适用于使用rpm安装nginx的方式,优点是升级操作简单便捷,缺点是无法升级到指定版本,默认升级至YUM安装支持的...

    CentOS 7 nginx平滑升级.pdf

    CentOS 7 nginx平滑升级

    CentOS 6.5 安装 Nginx 1.7.8 教程

    CentOS 6.5 安装 Nginx 1.7.8 教程

    centos7-Nginx从1.12平滑升级到1.14

    如标题所述本文讲述了centos7-Nginx如何从1.12平滑升级到1.14。

    CentOS+nginx+uwsgi+Python 多站点环境搭建.docx

    CentOS+nginx+uwsgi+Python 多站点环境搭建 本文档介绍了如何在 CentOS 操作系统上搭建多站点环境,使用 nginx 作为 Web 服务器,uwsgi 作为 WSGI 服务器,Python 作为后端语言。该环境搭建适合大多数 Web 应用...

    nginx centos6.6离线安装包

    当我们的服务器没有互联网的时候可以用这个包离线安装,安装很简单,把文件解压出来上传到服务器,用cd命令打开目录,然后用rpm -ivh *.rpm即可安装

    CentOS-Nginx-Apache-PHP-MySQL 镜像使用帮助文档

    CentOS-Nginx-Apache-PHP-MySQL 镜像使用帮助文档 1.镜像环境说明 2.musql以及phpmyadmin的密码 3.软件目录及配置列表 4.软件操作命令汇总 5.关于卸载 6.升级内容介绍 7.升级后的操作说明 8.附录 教程一 :部署网站 ...

    Nginx 1.22.0 Linux 版本,解压安装。

    Nginx 的1.20.0稳定版已经于2021年4月20日发布,一般情况下,对于新建站点,建议使用最新稳定版作为生产版本,已有站点的升级急迫性不高。Nginx 的源代码使用 2-clause BSD-like license。 Nginx 是一个很强大的高...

    Nginx1.24.0版本Linux已编译解压可直接使用

    Linux环境Nginx1.24.0版本,解压即用。 解压后使用./nginx -V可查看版本和编译信息。 编译参数包含flv、pcre-8.45、openssl-1.1.1l、zlib-1.2.11等,满足基本使用;

    nginx1.24.0 RPM安装包

    nginx1.24.0 RPM安装包(CentOS7.5 测试可安装),依赖gcc、pcre、pcre-devel、zlib、zlib-devel。默认安装版本,不包含SSL加密等可选功能。

    centos7升级安装Openssl.txt

    这里是Linux Centos下升级Openssl使用的所有依赖包,当然也是Nginx或者Keepalived安装所需要的依赖包。按需使用。

    CentOS上搭建Nginx+Mono运行asp.net环境的配置方法

    1、利用CentOS Linux系统自带的yum命令安装、升级所需的程序库: sudo -s LANG=C yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel...

    nginx-1.22.0-1.el7.ngx.x86_64_ngx_rtmp_ipv6.rpm

    2022年5月30日 官方当前最新稳定版本nginx 二进制rpm包 适用于x86架构centos7 rhel7版本操作系统升级安装nginx 该包开启了ipv6支持,添加了nginx-rtmp模块支持

    nginx-1.24.0-1.el6.ngx.x86-64.rpm

    nginx官网不再更新centos6版,此rpm构建于nginx最新稳定版1.24.0

    升级zlib-openssl-openssh-全站验证兼容centos6 centos78

    支持升级修复openssl漏洞,支持升级修复openssh漏洞 兼容版本centos6,centos7,centos8 以及腾讯云轻量化os系统 支持版本目前到最新的openssh9.0p1 openssl 1.1.1q ...如果openssl升级后nginx建议一起升级

    nginx1.18.0rpm安装包

    centos7安装用的nginx1.18.0稳定版安装包,rpm格式,可直接使用rpm -i 包名称安装,或者rpm -Uvh升级。下载后请先解压。

    linux离线一键docker容器运行nginx

    linux离线环境实现docker化一键快速部署nginx,方便测试、开发构建测试环境

    鲲鹏云centos7aarch64可用的 nginx

    鲲鹏云 centos7 aarch64 可用的 nginx1.23+openssl1.1.1,不是源码,是编译后的,可以直接上传即可用,为了同行着想,特共享出来。编译十分费劲,一大堆依赖包,gcc升级,perl 都要

    Redhat 使用CentOS的yum源进行升级或软件安装

    Redhat 使用CentOS的yum源进行升级或软件安装 分类: linux 2012-07-19 15:54 1113人阅读 评论(0) 收藏 举报 Redhat默认的源不但速度不给力,而且软件版本陈旧,今天试着将Redhat默认源替换为CentOS的163源,发现...

    nginx-1.24.0-1.el7.ngx.aarch64-ipv6.rpm

    2023年5月26日,当前最新稳定版nginx 1.24.0 二进制rpm包 适用于arm64架构平台,centos7 redhat 7 arm架构的操作系统 已开启ipv6支持,官方默认不支持 可用于修复安全漏洞、升级更新nginx版本到1.24.0

Global site tag (gtag.js) - Google Analytics