mysql 升级 openssl_【1分钟教程】LNMP架构应用实战 Openssl升级操作

由于实际生产环境需求,需要将LNMP环境中的openssl版本升级至目前最新版本openssl-1.1.0c,这玩意升级还真的不是一般的麻烦,由于它与系统各种服务都有相关的联系,比如ssh服务等,因此,升级非常的繁琐,所以今天将实际生产环境中升级的过程写出来,供大家参考(100%生产环境)

1、整体环境

系统环境

[root@webserver ~]# **cat /etc/redhat-release**

CentOS release 6.5 (Final)

[root@webserver ~]# **uname -r**

2.6.32-431.el6.x86_64

LNMP版本

[root@webserver ~]# /application/nginx/sbin/nginx -v

nginx version: nginx/1.10.1

[root@webserver ~]# /application/mysql/bin/mysql -V

/application/mysql/bin/mysql  Ver 14.14 Distrib 5.5.54, for Linux (x86_64) using  EditLine wrapper

使用PHP 5.x 版本一直没有升级成功,后面会介绍更高版本

2、LNMP环境编译过程

nginx、mysql全部手工编译安装的,下面给出相关参数

nginx编译过程:

[root@centos6 nginx-1.10.1]# ./configure --user=nginx \

--group=nginx --prefix=/application/nginx-1.10.1 \

--with-http_stub_status_module --with-http_ssl_module \

--with-pcre=/download/pcre-8.38

[root@centos6 nginx-1.10.1]# make && make install

[root@centos6 nginx-1.10.1]# ln -s /application/nginx-1.10.1 /application/nginx

[root@centos6 nginx-1.10.1]# /application/nginx/sbin/nginx

[root@centos6 nginx-1.10.1]# lsof -i :80

COMMAND   PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME

nginx   16237  root    6u  IPv4  31404      0t0  TCP *:http (LISTEN)

nginx   16238 nginx    6u  IPv4  31404      0t0  TCP *:http (LISTEN)

[root@centos6 nginx-1.10.1]# cd ../

mysql编译过程:

[root@centos6 download]# tar zxf cmake-2.8.8.tar.gz

[root@centos6 download]# cd cmake-2.8.8

[root@centos6 cmake-2.8.8]# useradd -s /sbin/nologin -M mysql

[root@centos6 cmake-2.8.8]# ./configure

CMake has bootstrapped.  Now run gmake.

[root@centos6 cmake-2.8.8]# gmake

[root@centos6 cmake-2.8.8]# gmake install

[root@centos6 cmake-2.8.8]# cd ../

[root@centos6 download]# tar zxf mysql-5.5.54.tar.gz

[root@centos6 download]# cd mysql-5.5.54

[root@centos6 mysql-5.5.54]# cmake \

-DCMAKE_INSTALL_PREFIX=/application/mysql-5.5.54 \

-DNYSQL_DATADIR=/application/mysql-5.5.54/data \

-DNYSQL_UNIX_ADDR=/application/mysql-5.5.54/tmp/mysql.sock \

-DDEFAULT_CHARSET=gbk \

-DDEFAULT_COLLATION=gbk_chinese_ci \

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值