升级阿里云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 8545From       : 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 ResolutionDependencies Resolved================================================================================================Package                    Arch           Version                      Repository         Size
================================================================================================
Installing:gd3php                     x86_64         2.3.3-7.el7.remi             remi-safe         138 kreplacing  gd-last.x86_64 2.3.3-2.el7.reminginx                      x86_64         1:1.20.1-10.el7              epel              588 kphp82-php                  x86_64         8.2.20-1.el7.remi            remi-safe         2.0 Mphp82-php-common           x86_64         8.2.20-1.el7.remi            remi-safe         744 kphp82-php-fpm              x86_64         8.2.20-1.el7.remi            remi-safe         2.1 Mphp82-php-gd               x86_64         8.2.20-1.el7.remi            remi-safe          99 kphp82-php-mbstring         x86_64         8.2.20-1.el7.remi            remi-safe         542 kphp82-php-mysqlnd          x86_64         8.2.20-1.el7.remi            remi-safe         199 kphp82-php-pecl-zip         x86_64         1.22.3-1.el7.remi            remi-safe          60 kphp82-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 kgperftools-libs            x86_64         2.6.1-1.el7                  base              272 klibicu73                   x86_64         73.2-1.el7.remi              remi-safe          10 Mlibsodium                  x86_64         1.0.18-1.el7                 epel              147 klibzip5                    x86_64         1.10.1-1.el7.remi            remi-safe          67 knginx-filesystem           noarch         1:1.20.1-10.el7              epel               24 kopenssl11-libs             x86_64         1:1.1.1k-7.el7               epel              1.5 Mphp82-php-cli              x86_64         8.2.20-1.el7.remi            remi-safe         4.1 Mphp82-php-pdo              x86_64         8.2.20-1.el7.remi            remi-safe         142 kphp82-php-sodium           x86_64         8.2.20-1.el7.remi            remi-safe          97 kphp82-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 Mphp74-php-common           x86_64         7.4.33-15.el7.remi           remi-safe         702 kphp74-php-embedded         x86_64         7.4.33-15.el7.remi           remi-safe         1.7 Mphp74-php-fpm              x86_64         7.4.33-15.el7.remi           remi-safe         1.8 Mphp74-php-gd               x86_64         7.4.33-15.el7.remi           remi-safe          91 kphp74-php-intl             x86_64         7.4.33-15.el7.remi           remi-safe         199 kphp74-php-json             x86_64         7.4.33-15.el7.remi           remi-safe          80 kphp74-php-mbstring         x86_64         7.4.33-15.el7.remi           remi-safe         490 kphp74-php-mysqlnd          x86_64         7.4.33-15.el7.remi           remi-safe         198 kphp74-php-opcache          x86_64         7.4.33-15.el7.remi           remi-safe         273 kphp74-php-pdo              x86_64         7.4.33-15.el7.remi           remi-safe         128 kphp74-php-xml              x86_64         7.4.33-15.el7.remi           remi-safe         179 kTransaction 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 transactionUpdating   : 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" inNovember 2022. Even, if this package includes some ofthe important security fixes, backported from 8.1, theUPGRADE 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.remiphp74-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了

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/402643.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

记录|Git工具——下载GitHub项目

目录 前言一、Step 1. 下载Git二、Step2. 用Git Bash 下载到本地更新时间 前言 参考文章&#xff1a; 1、如何使用Git将Github项目拉到本地 2、git 安装、创建仓库、上传项目、克隆下载、常用命令 – 一篇文章总结&#xff08;适用github / gitee&#xff09; 3、Git的使用【入…

政策驱动,科技引领,漫途信息化监测方案守护农村饮水安全!

近日&#xff0c;山西省人民政府正式发布《山西省农村供水高质量发展规划》&#xff0c;明确到2030年&#xff0c;全面实现农村24小时供水&#xff0c;县域农村饮水安全标准化建设达标率力争达到80%&#xff0c;基本实现农村供水城市化、城乡供水均等化。 现阶段部分地区受…

ArcGIS简单介绍

ArcGIS体系结构 &#xff08;1&#xff09;GIS Server 宿主各种GIS资源&#xff0c;将他们封装为服务提供给客户端应用。GIS Server分为两部分&#xff1a;Server Object Manager&#xff08;SOM&#xff09;和Server Object Containers&#xff08;SOCs&#xff09;。一个SO…

Java语言程序设计——篇十三(4)

&#x1f33f;&#x1f33f;&#x1f33f;跟随博主脚步&#xff0c;从这里开始→博主主页&#x1f33f;&#x1f33f;&#x1f33f; 欢迎大家&#xff1a;这里是我的学习笔记、总结知识的地方&#xff0c;喜欢的话请三连&#xff0c;有问题可以私信&#x1f333;&#x1f333;&…

仪表板展示|DataEase看中国:2024巴黎奥运会中国体育代表团战绩报告

背景介绍 北京时间2024年8月12日凌晨&#xff0c;巴黎奥运会闭幕。在本届奥运会中&#xff0c;我们不仅见证了许多新世界纪录的诞生&#xff0c;更看到了中国体育的强大实力与无限潜力。中国运动健儿们卓越的表现和顽强的拼搏精神&#xff0c;不但让国人为之自豪&#xff0c;也…

Windows 11 Build 27686 上手体验:2TB FAT32、更好的沙盒等功能

Windows 11 Build 27686 现已在 Insider Program 的 Canary 频道发布&#xff0c;其中包含一些有趣的内容。该版本确认了微软更改 FAT32 大小限制的计划&#xff0c;并将其大小限制从 32GB 提高到 2TB。与此同时&#xff0c;沙盒也得到了改进。让我们来详细了解一下此次更新。 …

【卡码网Python基础课 16.出现频率最高的字母】

目录 题目描述与分析描述2.分析 一、哈希表二、代码编写 题目描述与分析 描述 题目描述&#xff1a; 给定一个只包含小写字母的字符串&#xff0c;统计字符串中每个字母出现的频率&#xff0c;并找出出现频率最高的字母&#xff0c;如果最高频率的字母有多个&#xff0c;输出…

Nginx--虚拟机配置

前言&#xff1a;本博客仅作记录学习使用&#xff0c;部分图片出自网络&#xff0c;如有侵犯您的权益&#xff0c;请联系删除 1、什么是虚拟主机 虚拟主机是一种特殊的软硬件技术&#xff0c;它可以将网络上的每一台计算机分成多个虚拟主机&#xff0c;每个虚拟主机可以独立对…

字符串函数!!!(续)(C语言)

一. strtok函数的使用 继续上次的学习&#xff0c;今天我们来认识一个新的函数strtok&#xff0c;它的原型是char* strtok(char* str,const char* sep)&#xff0c;sep参数指向了一个字符串&#xff0c;定义了用作分隔符的字符合集&#xff0c;第一个参数指定⼀个字符串&#…

基于C# winform部署图像动漫化AnimeGANv2部署onnx模型

【界面截图】 【效果演示】 【部分实现代码】 using System; using System.Diagnostics; using System.Windows.Forms; using OpenCvSharp;namespace FIRC {public partial class Form1 : Form{Mat src null;public Form1(){InitializeComponent();}private void button1_Cli…

消息系统-WebSocket消息推送

消息系统-WebSocket消息推送 接口层使用消息通知 1.数据库设计: 1.消息通知表 2.消息记录表 3.用户表和角色表及用户角色记录表 2.设计: 未使用消息中间件 ,利用接口层调用消息通知接口工具类 3.前端:消息通知页面 1.消息通知列表 2.消息通知标签 3.消息通知未读抽屉列表 一.…

Ubuntu离线安装库并解决依赖关系

&#xff08;1&#xff09;起因 安装插件出现库未找到的错误 configure: error: curses library is required but not found.&#xff08;2&#xff09;解决方法 手动到Ubuntu的库发布网页下载 http://packages.ubuntu.com/ 选择系统对应架构的版本下载&#xff0c;然后上传…

django(REST_FRAMEWORK)+swagger+Apifox 集成

1.reset_framework 1.1安装rest_framework 1.2使用rest_framework 在django框架中setting文件中注册rest_framework INSTALLED_APPS [rest_framework, ]2.reset_frameworkswagger 2.1.安装drf_yasg 2.2.在django框架中setting文件中注册drf_yasg INSTALLED_APPS [drf_…

滴滴开源新项目Unify:聚焦Flutter与原生通信难题,助力跨端应用落地

引言 在移动开发领域&#xff0c;移动跨端技术因其提效收益&#xff0c;逐渐成为业界趋势之一。Flutter 作为近年来热门的跨端技术&#xff0c;以高性能、自渲染、泛跨端著称&#xff0c;得到广泛应用。在滴滴国际化业务中&#xff0c;我们大量应用 Flutter。目前已在滴滴国际化…

【大模型部署及其应用 】RAG检索技术和生成模型的应用程序架构:RAG 使用 Meta AI 的 Llama 3

目录 RAG检索技术和生成模型的应用程序架构1. **基本概念**2. **工作原理**3. **RAG的优势**4. **常见应用场景**5. **RAG的挑战**6. **技术实现**参考RAG 使用 Meta AI 的 Llama 3亲自尝试运行主笔记本与文档应用聊天关键架构组件1. 自定义知识库2. 分块3. 嵌入模型4. 矢量数据…

PHP多商家营销活动平台系统小程序源码

解锁营销新境界&#xff01;「多商家营销活动平台」让你的品牌火出圈✨ &#x1f680;【聚合力量&#xff0c;共创辉煌】&#x1f680; 在这个竞争激烈的市场中&#xff0c;单打独斗早已不是最佳选择&#xff01;「多商家营销活动平台」横空出世&#xff0c;它像一座桥梁&…

关于Python3项目中依赖包管理问题

背景&#xff1a;最近在使用Python3.11编写脚本来获取google play中app的用户评论&#xff0c;脚本中需要安装多个依赖包&#xff0c;在本地Pycharm调试通过以后&#xff0c;上传到github&#xff0c;然后在linux服务器拉取脚本来运行&#xff0c;发现存在几个问题。本文将面临…

Qt登录窗口设计

widget.h #ifndef WIDGET_H #define WIDGET_H#include <QWidget> #include <QIcon> //图标类 #include <QPushButton> #include <QLineEdit> //行编辑 #include <QLabel> #include <QTextEdit> #include <QMovie>class Widge…

django中的MESSAGE组件

文章目录 message组件1 使用配置2 设置值3 读取值4 源码分析 message组件 1 使用配置 INSTALLED_APPS [# django.contrib.admin,# django.contrib.auth,# django.contrib.contenttypes,# django.contrib.sessions,django.contrib.messages,django.contrib.staticfiles,"…

vuex的原理和使用方法

简介 Vuex 是 Vue.js 应用的状态管理模式&#xff0c;它为应用内的所有组件提供集中式的状态&#xff08;数据&#xff09;管理。可以帮我们管理 Vue 通用的数据 (多组件共享的数据)。 Vuex的构成 state&#xff1a;state 是 Vuex 的数据中心&#xff0c;也就是说state是用来…