升级阿里云linux服务器上的php版本

查看已安装的php软件包
[root@iZbp13pl2v34qj0thwq9aiZ ~]# rpm -qa|grep php
php74-php-common-7.4.26-1.el7.remi.x86_64
oniguruma5php-6.9.7.1-1.el7.remi.x86_64
php74-php-gd-7.4.26-1.el7.remi.x86_64
php74-php-opcache-7.4.26-1.el7.remi.x86_64
php74-php-json-7.4.26-1.el7.remi.x86_64
php74-php-mbstring-7.4.26-1.el7.remi.x86_64
php74-php-embedded-7.4.26-1.el7.remi.x86_64
php74-runtime-1.0-3.el7.remi.x86_64
php74-1.0-3.el7.remi.x86_64
php74-php-mysqlnd-7.4.26-1.el7.remi.x86_64
php74-php-fpm-7.4.26-1.el7.remi.x86_64
php74-php-cli-7.4.26-1.el7.remi.x86_64
php74-php-pdo-7.4.26-1.el7.remi.x86_64
php74-php-intl-7.4.26-1.el7.remi.x86_64
php74-php-xml-7.4.26-1.el7.remi.x86_64
搜索php82安装包
[root@iZbp13pl2v34qj0thwq9aiZ ~]# yum search php82
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Loading mirror speeds from cached hostfile
 * remi-safe: ftp.riken.jp
====================================== N/S matched: php82 ======================================
php82-runtime.x86_64 : Package that handles php82 Software Collection.
php82-scldevel.x86_64 : Package shipping development files for php82
php82-syspaths.x86_64 : System-wide wrappers for the php82 package
php82.x86_64 : Package that installs PHP 8.2
......
安装php82软件包
[root@iZbp13pl2v34qj0thwq9aiZ ~]# yum install -y php82-php php82-php-fpm php82-php-xml php82-php-json php82-php-gd php82-php-zip php82-php-curl php82-php-mbstring php82-php-mysqli nginx
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * remi-safe: ftp.riken.jp
base                                                                     | 3.6 kB  00:00:00     
epel                                                                     | 4.3 kB  00:00:00     
extras                                                                   | 2.9 kB  00:00:00     
https://packages.grafana.com/oss/rpm/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2a04:4e42:8c::729: Network is unreachable"
Trying other mirror.
https://packages.grafana.com/oss/rpm/repodata/repomd.xml: [Errno 12] Timeout on https://packages.grafana.com/oss/rpm/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
https://packages.grafana.com/oss/rpm/repodata/repomd.xml: [Errno 12] Timeout on https://packages.grafana.com/oss/rpm/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
grafana/signature                                                        |  712 B  00:00:00     
Retrieving key from https://packages.grafana.com/gpg.key
Importing GPG key 0x10458545:
 Userid     : "Grafana Labs <engineering@grafana.com>"
 Fingerprint: b53a e77b adb6 30a6 8304 6005 963f a277 1045 8545
 From       : https://packages.grafana.com/gpg.key
grafana/signature                                                        | 3.0 kB  00:00:00 !!! 
influxdb                                                                 | 3.0 kB  00:00:00     
mysql-connectors-community                                               | 2.6 kB  00:00:00     
mysql-tools-community                                                    | 2.6 kB  00:00:00     
mysql80-community                                                        | 2.6 kB  00:00:00     
remi-safe                                                                | 3.0 kB  00:00:00     
updates                                                                  | 2.9 kB  00:00:00     
webtatic                                                                 | 3.6 kB  00:00:00     
(1/11): epel/x86_64/group                                                | 399 kB  00:00:00     
(2/11): epel/x86_64/updateinfo                                           | 1.0 MB  00:00:00     
(3/11): extras/7/x86_64/primary_db                                       | 253 kB  00:00:00     
(4/11): epel/x86_64/primary_db                                           | 8.7 MB  00:00:00     
(5/11): influxdb/7/x86_64/primary_db                                     |  95 kB  00:00:00     
(6/11): remi-safe/primary_db                                             | 2.6 MB  00:00:00     
(7/11): updates/7/x86_64/primary_db                                      |  27 MB  00:00:00     
(8/11): mysql-tools-community/x86_64/primary_db                          | 100 kB  00:00:02     
(9/11): mysql80-community/x86_64/primary_db                              | 299 kB  00:00:08     
mysql-connectors-community/x86 FAILED                                          MB  00:00:07 ETA 
http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/repodata/9dbd18910d3e02e94d41dbd63eb5fe4539a6c146-primary.sqlite.bz2: [Errno 14] curl#7 - "Failed to connect to 2600:1417:4400:e84::1d68: Network is unreachable"
Trying other mirror.
(10/11): mysql-connectors-community/x86_64/primary_db                    | 117 kB  00:00:08     
grafana/primary_db             FAILED                                          MB  42:40:36 ETA 
https://packages.grafana.com/oss/rpm/repodata/94cd847838bdc303568473f46837fa5b763abbb0077ed6cc0fed62420c5efdcc-primary.sqlite.bz2: [Errno 12] Timeout on https://packages.grafana.com/oss/rpm/repodata/94cd847838bdc303568473f46837fa5b763abbb0077ed6cc0fed62420c5efdcc-primary.sqlite.bz2: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
grafana/primary_db             FAILED                                          MB  46:30:30 ETA 
https://packages.grafana.com/oss/rpm/repodata/94cd847838bdc303568473f46837fa5b763abbb0077ed6cc0fed62420c5efdcc-primary.sqlite.bz2: [Errno 12] Timeout on https://packages.grafana.com/oss/rpm/repodata/94cd847838bdc303568473f46837fa5b763abbb0077ed6cc0fed62420c5efdcc-primary.sqlite.bz2: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
(11/11): grafana/primary_db                                              | 983 kB  00:00:59     
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 1:1.20.1-10.el7 will be installed
--> Processing Dependency: nginx-filesystem = 1:1.20.1-10.el7 for package: 1:nginx-1.20.1-10.el7.x86_64
--> Processing Dependency: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) for package: 1:nginx-1.20.1-10.el7.x86_64
--> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_0)(64bit) for package: 1:nginx-1.20.1-10.el7.x86_64
--> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_1)(64bit) for package: 1:nginx-1.20.1-10.el7.x86_64
--> Processing Dependency: nginx-filesystem for package: 1:nginx-1.20.1-10.el7.x86_64
--> Processing Dependency: redhat-indexhtml for package: 1:nginx-1.20.1-10.el7.x86_64
--> Processing Dependency: libcrypto.so.1.1()(64bit) for package: 1:nginx-1.20.1-10.el7.x86_64
--> Processing Dependency: libprofiler.so.0()(64bit) for package: 1:nginx-1.20.1-10.el7.x86_64
--> Processing Dependency: libssl.so.1.1()(64bit) for package: 1:nginx-1.20.1-10.el7.x86_64
---> Package php82-php.x86_64 0:8.2.20-1.el7.remi will be installed
--> Processing Dependency: php82-php-cli(x86-64) = 8.2.20-1.el7.remi for package: php82-php-8.2.20-1.el7.remi.x86_64
--> Processing Dependency: php82-php-sodium(x86-64) = 8.2.20-1.el7.remi for package: php82-php-8.2.20-1.el7.remi.x86_64
---> Package php82-php-common.x86_64 0:8.2.20-1.el7.remi will be installed
--> Processing Dependency: php82-runtime for package: php82-php-common-8.2.20-1.el7.remi.x86_64
---> Package php82-php-fpm.x86_64 0:8.2.20-1.el7.remi will be installed
---> Package php82-php-gd.x86_64 0:8.2.20-1.el7.remi will be installed
--> Processing Dependency: libgd.so.103()(64bit) for package: php82-php-gd-8.2.20-1.el7.remi.x86_64
---> Package php82-php-mbstring.x86_64 0:8.2.20-1.el7.remi will be installed
---> Package php82-php-mysqlnd.x86_64 0:8.2.20-1.el7.remi will be installed
--> Processing Dependency: php82-php-pdo(x86-64) = 8.2.20-1.el7.remi for package: php82-php-mysqlnd-8.2.20-1.el7.remi.x86_64
---> Package php82-php-pecl-zip.x86_64 0:1.22.3-1.el7.remi will be installed
--> Processing Dependency: libzip5(x86-64) >= 1.10.1 for package: php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64
--> Processing Dependency: libzip.so.5()(64bit) for package: php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64
---> Package php82-php-xml.x86_64 0:8.2.20-1.el7.remi will be installed
--> Running transaction check
---> Package centos-indexhtml.noarch 0:7-9.el7.centos will be installed
---> Package gd-last.x86_64 0:2.3.3-2.el7.remi will be obsoleted
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php74-php-gd-7.4.26-1.el7.remi.x86_64
--> Processing Dependency: libgd.so.3()(64bit) for package: php74-php-gd-7.4.26-1.el7.remi.x86_64
---> Package gd3php.x86_64 0:2.3.3-7.el7.remi will be obsoleting
---> Package gperftools-libs.x86_64 0:2.6.1-1.el7 will be installed
---> Package libzip5.x86_64 0:1.10.1-1.el7.remi will be installed
---> Package nginx-filesystem.noarch 1:1.20.1-10.el7 will be installed
---> Package openssl11-libs.x86_64 1:1.1.1k-7.el7 will be installed
---> Package php82-php-cli.x86_64 0:8.2.20-1.el7.remi will be installed
---> Package php82-php-pdo.x86_64 0:8.2.20-1.el7.remi will be installed
---> Package php82-php-sodium.x86_64 0:8.2.20-1.el7.remi will be installed
--> Processing Dependency: libsodium.so.23()(64bit) for package: php82-php-sodium-8.2.20-1.el7.remi.x86_64
---> Package php82-runtime.x86_64 0:8.2-5.el7.remi will be installed
--> Running transaction check
---> Package libsodium.x86_64 0:1.0.18-1.el7 will be installed
---> Package php74-php-gd.x86_64 0:7.4.26-1.el7.remi will be updated
---> Package php74-php-gd.x86_64 0:7.4.33-15.el7.remi will be an update
--> Processing Dependency: php74-php-common(x86-64) = 7.4.33-15.el7.remi for package: php74-php-gd-7.4.33-15.el7.remi.x86_64
--> Running transaction check
---> Package php74-php-common.x86_64 0:7.4.26-1.el7.remi will be updated
--> Processing Dependency: php74-php-common(x86-64) = 7.4.26-1.el7.remi for package: php74-php-intl-7.4.26-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.26-1.el7.remi for package: php74-php-embedded-7.4.26-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.26-1.el7.remi for package: php74-php-json-7.4.26-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.26-1.el7.remi for package: php74-php-xml-7.4.26-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.26-1.el7.remi for package: php74-php-fpm-7.4.26-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.26-1.el7.remi for package: php74-php-mbstring-7.4.26-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.26-1.el7.remi for package: php74-php-opcache-7.4.26-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.26-1.el7.remi for package: php74-php-cli-7.4.26-1.el7.remi.x86_64
--> Processing Dependency: php74-php-common(x86-64) = 7.4.26-1.el7.remi for package: php74-php-pdo-7.4.26-1.el7.remi.x86_64
---> Package php74-php-common.x86_64 0:7.4.33-15.el7.remi will be an update
--> Running transaction check
---> Package php74-php-cli.x86_64 0:7.4.26-1.el7.remi will be updated
---> Package php74-php-cli.x86_64 0:7.4.33-15.el7.remi will be an update
---> Package php74-php-embedded.x86_64 0:7.4.26-1.el7.remi will be updated
---> Package php74-php-embedded.x86_64 0:7.4.33-15.el7.remi will be an update
---> Package php74-php-fpm.x86_64 0:7.4.26-1.el7.remi will be updated
---> Package php74-php-fpm.x86_64 0:7.4.33-15.el7.remi will be an update
---> Package php74-php-intl.x86_64 0:7.4.26-1.el7.remi will be updated
---> Package php74-php-intl.x86_64 0:7.4.33-15.el7.remi will be an update
--> Processing Dependency: libicudata.so.73()(64bit) for package: php74-php-intl-7.4.33-15.el7.remi.x86_64
--> Processing Dependency: libicui18n.so.73()(64bit) for package: php74-php-intl-7.4.33-15.el7.remi.x86_64
--> Processing Dependency: libicuio.so.73()(64bit) for package: php74-php-intl-7.4.33-15.el7.remi.x86_64
--> Processing Dependency: libicuuc.so.73()(64bit) for package: php74-php-intl-7.4.33-15.el7.remi.x86_64
---> Package php74-php-json.x86_64 0:7.4.26-1.el7.remi will be updated
---> Package php74-php-json.x86_64 0:7.4.33-15.el7.remi will be an update
---> Package php74-php-mbstring.x86_64 0:7.4.26-1.el7.remi will be updated
---> Package php74-php-mbstring.x86_64 0:7.4.33-15.el7.remi will be an update
---> Package php74-php-opcache.x86_64 0:7.4.26-1.el7.remi will be updated
---> Package php74-php-opcache.x86_64 0:7.4.33-15.el7.remi will be an update
---> Package php74-php-pdo.x86_64 0:7.4.26-1.el7.remi will be updated
--> Processing Dependency: php74-php-pdo(x86-64) = 7.4.26-1.el7.remi for package: php74-php-mysqlnd-7.4.26-1.el7.remi.x86_64
---> Package php74-php-pdo.x86_64 0:7.4.33-15.el7.remi will be an update
---> Package php74-php-xml.x86_64 0:7.4.26-1.el7.remi will be updated
---> Package php74-php-xml.x86_64 0:7.4.33-15.el7.remi will be an update
--> Running transaction check
---> Package libicu73.x86_64 0:73.2-1.el7.remi will be installed
---> Package php74-php-mysqlnd.x86_64 0:7.4.26-1.el7.remi will be updated
---> Package php74-php-mysqlnd.x86_64 0:7.4.33-15.el7.remi will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================
 Package                    Arch           Version                      Repository         Size
================================================================================================
Installing:
 gd3php                     x86_64         2.3.3-7.el7.remi             remi-safe         138 k
     replacing  gd-last.x86_64 2.3.3-2.el7.remi
 nginx                      x86_64         1:1.20.1-10.el7              epel              588 k
 php82-php                  x86_64         8.2.20-1.el7.remi            remi-safe         2.0 M
 php82-php-common           x86_64         8.2.20-1.el7.remi            remi-safe         744 k
 php82-php-fpm              x86_64         8.2.20-1.el7.remi            remi-safe         2.1 M
 php82-php-gd               x86_64         8.2.20-1.el7.remi            remi-safe          99 k
 php82-php-mbstring         x86_64         8.2.20-1.el7.remi            remi-safe         542 k
 php82-php-mysqlnd          x86_64         8.2.20-1.el7.remi            remi-safe         199 k
 php82-php-pecl-zip         x86_64         1.22.3-1.el7.remi            remi-safe          60 k
 php82-php-xml              x86_64         8.2.20-1.el7.remi            remi-safe         199 k
Installing for dependencies:
 centos-indexhtml           noarch         7-9.el7.centos               base               92 k
 gperftools-libs            x86_64         2.6.1-1.el7                  base              272 k
 libicu73                   x86_64         73.2-1.el7.remi              remi-safe          10 M
 libsodium                  x86_64         1.0.18-1.el7                 epel              147 k
 libzip5                    x86_64         1.10.1-1.el7.remi            remi-safe          67 k
 nginx-filesystem           noarch         1:1.20.1-10.el7              epel               24 k
 openssl11-libs             x86_64         1:1.1.1k-7.el7               epel              1.5 M
 php82-php-cli              x86_64         8.2.20-1.el7.remi            remi-safe         4.1 M
 php82-php-pdo              x86_64         8.2.20-1.el7.remi            remi-safe         142 k
 php82-php-sodium           x86_64         8.2.20-1.el7.remi            remi-safe          97 k
 php82-runtime              x86_64         8.2-5.el7.remi               remi-safe         1.1 M
Updating for dependencies:
 php74-php-cli              x86_64         7.4.33-15.el7.remi           remi-safe         3.5 M
 php74-php-common           x86_64         7.4.33-15.el7.remi           remi-safe         702 k
 php74-php-embedded         x86_64         7.4.33-15.el7.remi           remi-safe         1.7 M
 php74-php-fpm              x86_64         7.4.33-15.el7.remi           remi-safe         1.8 M
 php74-php-gd               x86_64         7.4.33-15.el7.remi           remi-safe          91 k
 php74-php-intl             x86_64         7.4.33-15.el7.remi           remi-safe         199 k
 php74-php-json             x86_64         7.4.33-15.el7.remi           remi-safe          80 k
 php74-php-mbstring         x86_64         7.4.33-15.el7.remi           remi-safe         490 k
 php74-php-mysqlnd          x86_64         7.4.33-15.el7.remi           remi-safe         198 k
 php74-php-opcache          x86_64         7.4.33-15.el7.remi           remi-safe         273 k
 php74-php-pdo              x86_64         7.4.33-15.el7.remi           remi-safe         128 k
 php74-php-xml              x86_64         7.4.33-15.el7.remi           remi-safe         179 k

Transaction Summary
================================================================================================
Install  10 Packages (+11 Dependent packages)
Upgrade              ( 12 Dependent packages)

Total download size: 34 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/33): centos-indexhtml-7-9.el7.centos.noarch.rpm                       |  92 kB  00:00:00     
(2/33): gperftools-libs-2.6.1-1.el7.x86_64.rpm                           | 272 kB  00:00:00     
(3/33): libsodium-1.0.18-1.el7.x86_64.rpm                                | 147 kB  00:00:00     
(4/33): gd3php-2.3.3-7.el7.remi.x86_64.rpm                               | 138 kB  00:00:00     
(5/33): libzip5-1.10.1-1.el7.remi.x86_64.rpm                             |  67 kB  00:00:00     
(6/33): nginx-1.20.1-10.el7.x86_64.rpm                                   | 588 kB  00:00:00     
(7/33): nginx-filesystem-1.20.1-10.el7.noarch.rpm                        |  24 kB  00:00:00     
(8/33): openssl11-libs-1.1.1k-7.el7.x86_64.rpm                           | 1.5 MB  00:00:00     
(9/33): php74-php-cli-7.4.33-15.el7.remi.x86_64.rpm                      | 3.5 MB  00:00:00     
(10/33): libicu73-73.2-1.el7.remi.x86_64.rpm                             |  10 MB  00:00:00     
(11/33): php74-php-common-7.4.33-15.el7.remi.x86_64.rpm                  | 702 kB  00:00:00     
(12/33): php74-php-embedded-7.4.33-15.el7.remi.x86_64.rpm                | 1.7 MB  00:00:00     
(13/33): php74-php-gd-7.4.33-15.el7.remi.x86_64.rpm                      |  91 kB  00:00:00     
(14/33): php74-php-fpm-7.4.33-15.el7.remi.x86_64.rpm                     | 1.8 MB  00:00:00     
(15/33): php74-php-intl-7.4.33-15.el7.remi.x86_64.rpm                    | 199 kB  00:00:00     
(16/33): php74-php-json-7.4.33-15.el7.remi.x86_64.rpm                    |  80 kB  00:00:00     
(17/33): php74-php-mbstring-7.4.33-15.el7.remi.x86_64.rpm                | 490 kB  00:00:00     
(18/33): php74-php-mysqlnd-7.4.33-15.el7.remi.x86_64.rpm                 | 198 kB  00:00:00     
(19/33): php74-php-opcache-7.4.33-15.el7.remi.x86_64.rpm                 | 273 kB  00:00:00     
(20/33): php74-php-pdo-7.4.33-15.el7.remi.x86_64.rpm                     | 128 kB  00:00:00     
(21/33): php74-php-xml-7.4.33-15.el7.remi.x86_64.rpm                     | 179 kB  00:00:00     
(22/33): php82-php-8.2.20-1.el7.remi.x86_64.rpm                          | 2.0 MB  00:00:00     
(23/33): php82-php-cli-8.2.20-1.el7.remi.x86_64.rpm                      | 4.1 MB  00:00:00     
(24/33): php82-php-common-8.2.20-1.el7.remi.x86_64.rpm                   | 744 kB  00:00:00     
(25/33): php82-php-fpm-8.2.20-1.el7.remi.x86_64.rpm                      | 2.1 MB  00:00:00     
(26/33): php82-php-mbstring-8.2.20-1.el7.remi.x86_64.rpm                 | 542 kB  00:00:00     
(27/33): php82-php-mysqlnd-8.2.20-1.el7.remi.x86_64.rpm                  | 199 kB  00:00:00     
(28/33): php82-php-pdo-8.2.20-1.el7.remi.x86_64.rpm                      | 142 kB  00:00:00     
(29/33): php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64.rpm                 |  60 kB  00:00:00     
(30/33): php82-php-sodium-8.2.20-1.el7.remi.x86_64.rpm                   |  97 kB  00:00:00     
(31/33): php82-php-gd-8.2.20-1.el7.remi.x86_64.rpm                       |  99 kB  00:00:00     
(32/33): php82-php-xml-8.2.20-1.el7.remi.x86_64.rpm                      | 199 kB  00:00:00     
(33/33): php82-runtime-8.2-5.el7.remi.x86_64.rpm                         | 1.1 MB  00:00:00     
------------------------------------------------------------------------------------------------
Total                                                            14 MB/s |  34 MB  00:00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : php74-php-json-7.4.33-15.el7.remi.x86_64                                    1/46 
  Updating   : php74-php-common-7.4.33-15.el7.remi.x86_64                                  2/46 
  Installing : gd3php-2.3.3-7.el7.remi.x86_64                                              3/46 
  Installing : php82-runtime-8.2-5.el7.remi.x86_64                                         4/46 
  Installing : php82-php-common-8.2.20-1.el7.remi.x86_64                                   5/46 
  Installing : php82-php-cli-8.2.20-1.el7.remi.x86_64                                      6/46 
  Installing : php82-php-pdo-8.2.20-1.el7.remi.x86_64                                      7/46 
  Updating   : php74-php-pdo-7.4.33-15.el7.remi.x86_64                                     8/46 
  Installing : gperftools-libs-2.6.1-1.el7.x86_64                                          9/46 
  Installing : libicu73-73.2-1.el7.remi.x86_64                                            10/46 
  Installing : centos-indexhtml-7-9.el7.centos.noarch                                     11/46 
  Installing : 1:nginx-filesystem-1.20.1-10.el7.noarch                                    12/46 
  Installing : libsodium-1.0.18-1.el7.x86_64                                              13/46 
  Installing : php82-php-sodium-8.2.20-1.el7.remi.x86_64                                  14/46 
  Installing : 1:openssl11-libs-1.1.1k-7.el7.x86_64                                       15/46 
  Installing : libzip5-1.10.1-1.el7.remi.x86_64                                           16/46 
  Installing : php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64                                17/46 
  Installing : 1:nginx-1.20.1-10.el7.x86_64                                               18/46 
  Installing : php82-php-8.2.20-1.el7.remi.x86_64                                         19/46 
  Updating   : php74-php-intl-7.4.33-15.el7.remi.x86_64                                   20/46 
  Updating   : php74-php-mysqlnd-7.4.33-15.el7.remi.x86_64                                21/46 
  Installing : php82-php-mysqlnd-8.2.20-1.el7.remi.x86_64                                 22/46 
  Installing : php82-php-gd-8.2.20-1.el7.remi.x86_64                                      23/46 
  Installing : php82-php-fpm-8.2.20-1.el7.remi.x86_64                                     24/46 
  Installing : php82-php-mbstring-8.2.20-1.el7.remi.x86_64                                25/46 
  Installing : php82-php-xml-8.2.20-1.el7.remi.x86_64                                     26/46 
  Updating   : php74-php-gd-7.4.33-15.el7.remi.x86_64                                     27/46 
  Updating   : php74-php-mbstring-7.4.33-15.el7.remi.x86_64                               28/46 
  Updating   : php74-php-fpm-7.4.33-15.el7.remi.x86_64                                    29/46 
  Updating   : php74-php-cli-7.4.33-15.el7.remi.x86_64                                    30/46 
  Updating   : php74-php-xml-7.4.33-15.el7.remi.x86_64                                    31/46 
  Updating   : php74-php-opcache-7.4.33-15.el7.remi.x86_64                                32/46 
  Updating   : php74-php-embedded-7.4.33-15.el7.remi.x86_64                               33/46 
  Cleanup    : php74-php-gd-7.4.26-1.el7.remi.x86_64                                      34/46 
  Cleanup    : php74-php-embedded-7.4.26-1.el7.remi.x86_64                                35/46 
  Cleanup    : php74-php-mysqlnd-7.4.26-1.el7.remi.x86_64                                 36/46 
  Cleanup    : php74-php-pdo-7.4.26-1.el7.remi.x86_64                                     37/46 
  Cleanup    : php74-php-opcache-7.4.26-1.el7.remi.x86_64                                 38/46 
  Cleanup    : php74-php-xml-7.4.26-1.el7.remi.x86_64                                     39/46 
  Cleanup    : php74-php-cli-7.4.26-1.el7.remi.x86_64                                     40/46 
  Cleanup    : php74-php-fpm-7.4.26-1.el7.remi.x86_64                                     41/46 
  Cleanup    : php74-php-intl-7.4.26-1.el7.remi.x86_64                                    42/46 
  Cleanup    : php74-php-mbstring-7.4.26-1.el7.remi.x86_64                                43/46 
  Cleanup    : php74-php-json-7.4.26-1.el7.remi.x86_64                                    44/46 
  Cleanup    : php74-php-common-7.4.26-1.el7.remi.x86_64                                  45/46 
  Erasing    : gd-last-2.3.3-2.el7.remi.x86_64                                            46/46 
=====================================================================

  WARNING : PHP 7.4 have reached its "End of Life" in
  November 2022. Even, if this package includes some of
  the important security fixes, backported from 8.1, the
  UPGRADE to a maintained version is very strongly RECOMMENDED.

=====================================================================
  Verifying  : php74-php-mbstring-7.4.33-15.el7.remi.x86_64                                1/46 
  Verifying  : php82-php-common-8.2.20-1.el7.remi.x86_64                                   2/46 
  Verifying  : php82-php-gd-8.2.20-1.el7.remi.x86_64                                       3/46 
  Verifying  : libzip5-1.10.1-1.el7.remi.x86_64                                            4/46 
  Verifying  : php74-php-pdo-7.4.33-15.el7.remi.x86_64                                     5/46 
  Verifying  : php74-php-common-7.4.33-15.el7.remi.x86_64                                  6/46 
  Verifying  : php82-php-cli-8.2.20-1.el7.remi.x86_64                                      7/46 
  Verifying  : php74-php-intl-7.4.33-15.el7.remi.x86_64                                    8/46 
  Verifying  : php82-runtime-8.2-5.el7.remi.x86_64                                         9/46 
  Verifying  : php82-php-fpm-8.2.20-1.el7.remi.x86_64                                     10/46 
  Verifying  : php74-php-gd-7.4.33-15.el7.remi.x86_64                                     11/46 
  Verifying  : php74-php-fpm-7.4.33-15.el7.remi.x86_64                                    12/46 
  Verifying  : php82-php-mysqlnd-8.2.20-1.el7.remi.x86_64                                 13/46 
  Verifying  : php82-php-pdo-8.2.20-1.el7.remi.x86_64                                     14/46 
  Verifying  : 1:openssl11-libs-1.1.1k-7.el7.x86_64                                       15/46 
  Verifying  : php74-php-cli-7.4.33-15.el7.remi.x86_64                                    16/46 
  Verifying  : php82-php-mbstring-8.2.20-1.el7.remi.x86_64                                17/46 
  Verifying  : 1:nginx-1.20.1-10.el7.x86_64                                               18/46 
  Verifying  : libsodium-1.0.18-1.el7.x86_64                                              19/46 
  Verifying  : gd3php-2.3.3-7.el7.remi.x86_64                                             20/46 
  Verifying  : php82-php-8.2.20-1.el7.remi.x86_64                                         21/46 
  Verifying  : 1:nginx-filesystem-1.20.1-10.el7.noarch                                    22/46 
  Verifying  : php74-php-json-7.4.33-15.el7.remi.x86_64                                   23/46 
  Verifying  : php82-php-sodium-8.2.20-1.el7.remi.x86_64                                  24/46 
  Verifying  : php74-php-xml-7.4.33-15.el7.remi.x86_64                                    25/46 
  Verifying  : centos-indexhtml-7-9.el7.centos.noarch                                     26/46 
  Verifying  : libicu73-73.2-1.el7.remi.x86_64                                            27/46 
  Verifying  : php74-php-opcache-7.4.33-15.el7.remi.x86_64                                28/46 
  Verifying  : php82-php-xml-8.2.20-1.el7.remi.x86_64                                     29/46 
  Verifying  : php74-php-mysqlnd-7.4.33-15.el7.remi.x86_64                                30/46 
  Verifying  : gperftools-libs-2.6.1-1.el7.x86_64                                         31/46 
  Verifying  : php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64                                32/46 
  Verifying  : php74-php-embedded-7.4.33-15.el7.remi.x86_64                               33/46 
  Verifying  : php74-php-common-7.4.26-1.el7.remi.x86_64                                  34/46 
  Verifying  : php74-php-fpm-7.4.26-1.el7.remi.x86_64                                     35/46 
  Verifying  : php74-php-cli-7.4.26-1.el7.remi.x86_64                                     36/46 
  Verifying  : php74-php-gd-7.4.26-1.el7.remi.x86_64                                      37/46 
  Verifying  : php74-php-mbstring-7.4.26-1.el7.remi.x86_64                                38/46 
  Verifying  : php74-php-mysqlnd-7.4.26-1.el7.remi.x86_64                                 39/46 
  Verifying  : php74-php-xml-7.4.26-1.el7.remi.x86_64                                     40/46 
  Verifying  : php74-php-pdo-7.4.26-1.el7.remi.x86_64                                     41/46 
  Verifying  : php74-php-embedded-7.4.26-1.el7.remi.x86_64                                42/46 
  Verifying  : php74-php-json-7.4.26-1.el7.remi.x86_64                                    43/46 
  Verifying  : php74-php-opcache-7.4.26-1.el7.remi.x86_64                                 44/46 
  Verifying  : gd-last-2.3.3-2.el7.remi.x86_64                                            45/46 
  Verifying  : php74-php-intl-7.4.26-1.el7.remi.x86_64                                    46/46 

Installed:
  gd3php.x86_64 0:2.3.3-7.el7.remi                nginx.x86_64 1:1.20.1-10.el7                  
  php82-php.x86_64 0:8.2.20-1.el7.remi            php82-php-common.x86_64 0:8.2.20-1.el7.remi   
  php82-php-fpm.x86_64 0:8.2.20-1.el7.remi        php82-php-gd.x86_64 0:8.2.20-1.el7.remi       
  php82-php-mbstring.x86_64 0:8.2.20-1.el7.remi   php82-php-mysqlnd.x86_64 0:8.2.20-1.el7.remi  
  php82-php-pecl-zip.x86_64 0:1.22.3-1.el7.remi   php82-php-xml.x86_64 0:8.2.20-1.el7.remi      

Dependency Installed:
  centos-indexhtml.noarch 0:7-9.el7.centos      gperftools-libs.x86_64 0:2.6.1-1.el7            
  libicu73.x86_64 0:73.2-1.el7.remi             libsodium.x86_64 0:1.0.18-1.el7                 
  libzip5.x86_64 0:1.10.1-1.el7.remi            nginx-filesystem.noarch 1:1.20.1-10.el7         
  openssl11-libs.x86_64 1:1.1.1k-7.el7          php82-php-cli.x86_64 0:8.2.20-1.el7.remi        
  php82-php-pdo.x86_64 0:8.2.20-1.el7.remi      php82-php-sodium.x86_64 0:8.2.20-1.el7.remi     
  php82-runtime.x86_64 0:8.2-5.el7.remi        

Dependency Updated:
  php74-php-cli.x86_64 0:7.4.33-15.el7.remi      php74-php-common.x86_64 0:7.4.33-15.el7.remi  
  php74-php-embedded.x86_64 0:7.4.33-15.el7.remi php74-php-fpm.x86_64 0:7.4.33-15.el7.remi     
  php74-php-gd.x86_64 0:7.4.33-15.el7.remi       php74-php-intl.x86_64 0:7.4.33-15.el7.remi    
  php74-php-json.x86_64 0:7.4.33-15.el7.remi     php74-php-mbstring.x86_64 0:7.4.33-15.el7.remi
  php74-php-mysqlnd.x86_64 0:7.4.33-15.el7.remi  php74-php-opcache.x86_64 0:7.4.33-15.el7.remi 
  php74-php-pdo.x86_64 0:7.4.33-15.el7.remi      php74-php-xml.x86_64 0:7.4.33-15.el7.remi     

Replaced:
  gd-last.x86_64 0:2.3.3-2.el7.remi                                                             

Complete!
检查是否安装了新软件包
[root@iZbp13pl2v34qj0thwq9aiZ ~]# rpm -qa|grep php
oniguruma5php-6.9.7.1-1.el7.remi.x86_64
php74-php-common-7.4.33-15.el7.remi.x86_64
php82-php-cli-8.2.20-1.el7.remi.x86_64
php82-php-sodium-8.2.20-1.el7.remi.x86_64
php82-php-mysqlnd-8.2.20-1.el7.remi.x86_64
php82-php-xml-8.2.20-1.el7.remi.x86_64
php74-php-cli-7.4.33-15.el7.remi.x86_64
php74-php-json-7.4.33-15.el7.remi.x86_64
php82-php-common-8.2.20-1.el7.remi.x86_64
php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64
php74-php-mysqlnd-7.4.33-15.el7.remi.x86_64
php82-php-mbstring-8.2.20-1.el7.remi.x86_64
php74-php-fpm-7.4.33-15.el7.remi.x86_64
php74-php-embedded-7.4.33-15.el7.remi.x86_64
php74-runtime-1.0-3.el7.remi.x86_64
php74-1.0-3.el7.remi.x86_64
php82-runtime-8.2-5.el7.remi.x86_64
php74-php-pdo-7.4.33-15.el7.remi.x86_64
php74-php-intl-7.4.33-15.el7.remi.x86_64
php82-php-fpm-8.2.20-1.el7.remi.x86_64
php74-php-mbstring-7.4.33-15.el7.remi.x86_64
php74-php-opcache-7.4.33-15.el7.remi.x86_64
gd3php-2.3.3-7.el7.remi.x86_64
php82-php-pdo-8.2.20-1.el7.remi.x86_64
php82-php-8.2.20-1.el7.remi.x86_64
php82-php-gd-8.2.20-1.el7.remi.x86_64
php74-php-gd-7.4.33-15.el7.remi.x86_64
php74-php-xml-7.4.33-15.el7.remi.x86_64
[root@iZbp13pl2v34qj0thwq9aiZ ~]# rpm -qa|grep php82
php82-php-cli-8.2.20-1.el7.remi.x86_64
php82-php-sodium-8.2.20-1.el7.remi.x86_64
php82-php-mysqlnd-8.2.20-1.el7.remi.x86_64
php82-php-xml-8.2.20-1.el7.remi.x86_64
php82-php-common-8.2.20-1.el7.remi.x86_64
php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64
php82-php-mbstring-8.2.20-1.el7.remi.x86_64
php82-runtime-8.2-5.el7.remi.x86_64
php82-php-fpm-8.2.20-1.el7.remi.x86_64
php82-php-pdo-8.2.20-1.el7.remi.x86_64
php82-php-8.2.20-1.el7.remi.x86_64
php82-php-gd-8.2.20-1.el7.remi.x86_64
[root@iZbp13pl2v34qj0thwq9aiZ ~]# rpm -qa|grep php74
php74-php-common-7.4.33-15.el7.remi.x86_64
php74-php-cli-7.4.33-15.el7.remi.x86_64
php74-php-json-7.4.33-15.el7.remi.x86_64
php74-php-mysqlnd-7.4.33-15.el7.remi.x86_64
php74-php-fpm-7.4.33-15.el7.remi.x86_64
php74-php-embedded-7.4.33-15.el7.remi.x86_64
php74-runtime-1.0-3.el7.remi.x86_64
php74-1.0-3.el7.remi.x86_64
php74-php-pdo-7.4.33-15.el7.remi.x86_64
php74-php-intl-7.4.33-15.el7.remi.x86_64
php74-php-mbstring-7.4.33-15.el7.remi.x86_64
php74-php-opcache-7.4.33-15.el7.remi.x86_64
php74-php-gd-7.4.33-15.el7.remi.x86_64
php74-php-xml-7.4.33-15.el7.remi.x86_64
[root@iZbp13pl2v34qj0thwq9aiZ ~]# php82 -v
PHP 8.2.20 (cli) (built: Jun  4 2024 13:22:51) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.2.20, Copyright (c) Zend Technologies
查看原php-fpm运行的端口,并切换成php82版本的
[root@iZbp13pl2v34qj0thwq9aiZ ~]# netstat -natup|grep php
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      31329/php-fpm: mast 
[root@iZbp13pl2v34qj0thwq9aiZ ~]# systemctl stop php74-php-fpm
[root@iZbp13pl2v34qj0thwq9aiZ ~]# systemctl start php82-php-fpm
[root@iZbp13pl2v34qj0thwq9aiZ ~]# systemctl enable php82-php-fpm
Created symlink from /etc/systemd/system/multi-user.target.wants/php82-php-fpm.service to /usr/lib/systemd/system/php82-php-fpm.service.
[root@iZbp13pl2v34qj0thwq9aiZ ~]# restart httpd.service
-bash: restart: command not found
[root@iZbp13pl2v34qj0thwq9aiZ ~]# systemctl restart httpd.service
[root@iZbp13pl2v34qj0thwq9aiZ ~]# netstat -natup|grep php
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      31433/php-fpm: mast 
(这里忘了在启动服务中停用php74的链接,补上)
[root@iZbp13pl2v34qj0thwq9aiZ ~]# systemctl disable php74-php-fpm
Removed symlink /etc/systemd/system/multi-user.target.wants/php74-php-fpm.service.
[root@iZbp13pl2v34qj0thwq9aiZ ~]# ls /etc/systemd/system/multi-user.target.wants/
aegis.service         cloud-final.service       httpd.service          rhel-configure.service                 var-lib-snapd-snap-core-16928.mount
aliyun.service        cloud-init-local.service  influxdb.service       rsyslog.service                        var-lib-snapd-snap-core-17200.mount
AssistDaemon.service  cloud-init.service        irqbalance.service     sshd.service                           var-lib-snapd-snap-core20-2264.mount
atd.service           CmsGoAgent.service        mysqld.service         sysstat.service                        var-lib-snapd-snap-core20-2318.mount
auditd.service        crond.service             php82-php-fpm.service  tuned.service
chronyd.service       ecs_mq.service            postfix.service        var-lib-snapd-snap-certbot-3700.mount
cloud-config.service  grafana-server.service    remote-fs.target       var-lib-snapd-snap-certbot-3834.mount
再进phpMyAdmin时,可以看到版本已经是8.2了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值