Lll Blog


  • 首页

  • 标签

  • 分类

  • 归档

MySQL 小版本升级

发表于 2022-03-25

MySQL 版本升级(in-place upgrade 小版本升级 5.7.33 -> 5.7.37)

下载 mysql 5.7.37 版本

1
[root@s00ythmysql02 local]# wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.37-linux-glibc2.12-x86_64.tar.gz

备份数据库

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[root@s00ythmysql02 local]# sudo /data/mysql/script/backup.sh

mysqladmin: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
----------------------------

./backup.sh: MySQL备份脚本
开始于: 2022-02-09 14:30:07 3

*********************************
正在执行全新的完全备份...请稍等...
*********************************
数据库成功备份到:/data/mysql/backup/xtrabackup/full/2022-02-09_14-30-07/
必须保留1份全备和全备2022-02-09_14-30-07以后的所有增量备份.
rm: refusing to remove "." or ".." directory: skipping "."

未找到可以删除的过期全备文件

完成于: 2022-02-09 15:19:17 3
阅读全文 »

MySQL 添加从库

发表于 2022-03-25

MySQL 添加从库

准备工作

​ 备份需要安装 Percona-XtraBackup,如果没有安装需要下载并安装

  1. 下载 Percona-XtraBackup:
    mysql 5.7版本

    1
    wget https://downloads.percona.com/downloads/Percona-XtraBackup-2.4/Percona-XtraBackup-2.4.11/binary/redhat/7/x86_64/percona-xtrabackup-24-2.4.11-1.el7.x86_64.rpm

    mysql 8.0版本

    1
    wget https://downloads.percona.com/downloads/Percona-XtraBackup-LATEST/Percona-XtraBackup-8.0.27-19/binary/redhat/7/x86_64/percona-xtrabackup-80-8.0.27-19.1.el7.x86_64.rpm
  2. 安装 Percona-XtraBackup:
    mysql 5.7版本

    1
    rpm -ivh percona-xtrabackup-24-2.4.24-1.el7.x86_64.rpm

    mysql 8.0版本

    1
    rpm -ivh percona-xtrabackup-80-8.0.27-19.1.el7.x86_64.rpm
阅读全文 »

openssl 升级

发表于 2022-03-25

openssl 升级

  1. 检查当前版本

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    openssl version -a

    # 当前版本为 1.1.1h
    OpenSSL 1.1.1h 22 Sep 2020
    built on: Sun Apr 4 12:13:13 2021 UTC
    platform: linux-x86_64
    options: bn(64,64) rc4(8x,char) des(int) idea(int) blowfish(ptr)
    compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DZLIB -DNDEBUG
    OPENSSLDIR: "/etc/ssl"
    ENGINESDIR: "/usr/lib64/engines-1.1"
    Seeding source: os-specific进行版本升级
  2. 进行版本升级

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    cd /opt
    wget --no-check-certificat https://www.openssl.org/source/openssl-1.1.1m.tar.gz
    tar -zxvf openssl-1.1.1m.tar.gz
    cd openssl-1.1.1m
    ./config --shared
    make
    make install
    mv /usr/bin/openssl /usr/bin/openssl.old.20220112
    mv /usr/include/openssl /usr/include/openssl.old.20220112
    ln -s /usr/local/bin/openssl /usr/bin/openssl
    ln -s /usr/local/include/openssl /usr/include/openssl
    echo "/usr/local/lib64/" >> /etc/ld.so.conf
    ldconfig
  1. 检查升级后的版本

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    openssl version -a

    # 当前版本为 1.1.1m
    OpenSSL 1.1.1m 14 Dec 2021
    built on: Wed Jan 12 01:57:01 2022 UTC
    platform: linux-x86_64
    options: bn(64,64) rc4(8x,char) des(int) idea(int) blowfish(ptr)
    compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DNDEBUG
    OPENSSLDIR: "/usr/local/ssl"
    ENGINESDIR: "/usr/local/lib64/engines-1.1"
    Seeding source: os-specific

curl 升级

发表于 2022-03-25

curl 升级

  1. 检测 curl 当前版本

    1
    2
    3
    4
    5
    6
    curl -V

    #当前版本为 7.29.0
    curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.36 zlib/1.2.11 libidn/1.28 libssh2/1.4.3
    Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
    Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets
  2. 版本升级

    1
    2
    3
    4
    5
    6
    7
    8
    9
    cd /opt
    wget --no-check-certificat https://curl.se/download/curl-7.81.0.tar.gz
    tar -zxvf curl-7.81.0.tar.gz
    cd curl-7.81.0
    ./configure --with-openssl=/opt/openssl-1.1.1m
    make
    make install
    mv /usr/bin/curl /usr/bin/curl.old.20220113
    ln -s /usr/local/bin/curl /usr/bin/curl
  3. 检测升级后 curl 版本

    1
    2
    3
    4
    5
    6
    7
    curl -V

    #当前版本为 7.81.0
    curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/1.1.1m zlib/1.2.11
    Release-Date: 2022-01-05
    Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
    Features: alt-svc AsynchDNS HSTS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets

lz4 升级

发表于 2022-03-25

lz4 升级

  1. 检测 lz4 当前版本

    1
    2
    3
    4
    lz4 -V

    # 当前版本为 v1.7.5
    *** LZ4 command line interface 64-bits v1.7.5, by Yann Collet ***
  2. 版本升级

    1
    2
    3
    4
    5
    6
    7
    8
    cd /opt
    wget https://github.com/lz4/lz4/archive/refs/tags/v1.9.3.tar.gz
    tar -zxvf v1.9.3.tar.gz
    cd v1.9.3.tar.gz
    make
    make install
    mv /usr/bin/lz4 /usr/bin/lz4.old.20220114
    ln -s /usr/local/bin/lz4 /usr/bin/lz4
  3. 检查升级后 lz4 的版本

    1
    2
    3
    4
    lz4 -V

    # 当前版本为 v1.9.3
    *** LZ4 command line interface 64-bits v1.9.3, by Yann Collet ***
1…56

紫苏

30 日志
2 分类
8 标签
© 2022 紫苏
由 Hexo 强力驱动
|
主题 — NexT.Mist v5.1.4