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

news2024/9/21 16:49:14

查看已安装的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 
再进phpMyAdmin时,可以看到版本已经是8.2了

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

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

阿里云Elasticsearch 企业级AI搜索方案发布

在AI技术日新月异的今天&#xff0c;尤其是大语言模型的兴起&#xff0c;企业智能化场景的解决方案正经历一场前所未有的革新。然而&#xff0c;大模型在实际应用中面临的挑战不容小觑&#xff0c;如何高效、精准地服务于企业的个性化需求成为关键。阿里云搜索产品团队通过阿里…

QT文件的操作

QT文件的操作 学习QT的文件操作类:Qfile、QTextStream。利用QtCreator工具实现文件的操作过程。通过文件读取样式表文件,动态的改变控件的外观。QFile提供了操作文件的常用功能。是一种IO设备,可以用来读写文本文件和二进制文件,也可以用来读写QT的资源文件。QFile类可以单…

仓库与文件的提交/修改/删除

目录 1. 创建仓库 ​编辑​编辑 2. 界面解释 3. 再创建仓库 4. 移除仓库 5. 本地添加文件到仓库 ​编辑​编辑 6. 比对&#xff0c;提交 7. 修改&#xff0c;提交 8. 查询版本号 9. 删除文件 git 是分布式版本控制工具&#xff0c;需要将中央服务器克隆到本地&#…

【Spark集群部署系列一】Spark local模式介绍和搭建以及使用(内含Linux安装Anaconda)

简介 注意&#xff1a; 在部署spark集群前&#xff0c;请部署好Hadoop集群&#xff0c;jdk8【当然Hadoop集群需要运行在jdk上】&#xff0c;需要注意hadoop&#xff0c;spark的版本&#xff0c;考虑兼容问题。比如hadoop3.0以上的才兼容spark3.0以上的。 下面是Hadoop集群部署…

wps怎么找回未保存的文件?分享三个文件恢复方法

在编辑WPS文档时&#xff0c;偶尔会遇到未保存就意外关闭的情况&#xff0c;这不仅令人沮丧&#xff0c;还可能导致重要信息的丢失。但幸运的是&#xff0c;WPS提供了多种途径来帮助用户找回这些未保存的宝贵文件。从利用WPS的自动备份与恢复功能&#xff0c;到检查最近文档列表…

docker安装es8和kibana

es8、kibana安装、ik分词器使用 1 拉取镜像2 创建网络3 安装ES3.1 启动临时的ES3.2 运行es3.3 修改用户密码 4 安装kibana4.1 启动临时的kibana4.2 修改配置文件4.3 重启kibana4.4 调用5601端口&#xff08;我映射的是8082&#xff09; 5 安装ik分词器&#xff08;离线安装&…

聚众力·链未来 | 2024 FISCO BCOS认证合作伙伴开放申请

“独行虽速&#xff0c;众行方远”&#xff0c;一个充满蓬勃生命力的开源社区需要众多伙伴结伴同行&#xff0c;彼此支持&#xff0c;方能行远。开源7年来&#xff0c;FISCO BCOS开源社区始终秉持开放、连接的开源精神&#xff0c;与业界伙伴共同推动国产开源联盟链生态可持续性…

江理工文档管理系统的设计与实现

TOC springboot148江理工文档管理系统的设计与实现 绪论** 1.1 研究背景 在这个推荐个性化的时代&#xff0c;采用新技术开发一个文档系统来分享和展示内容是一个永恒不变的需求。本次设计的文档管理系统有管理员和用户两个角色。管理员功能有论坛管理&#xff0c;公告管理…

【网络协议】网络劫持 - ARP/DNS欺骗篇

前言 网络劫持是一种网络攻击技术&#xff0c;攻击者通过拦截、篡改或重定向数据流量&#xff0c;控制用户的网络通信路径&#xff0c;干扰正常的网络服务。其方式可能包括DNS劫持、ARP欺骗和HTTP劫持等。通过这些手段&#xff0c;攻击者可以窃取敏感信息如个人身份数据和财务信…

3 第一个 C 程序、程序编译过程、注释、printf 基本使用、代码块风格

目录 1 第一个 C 程序 1.1 需求说明 1.2 开发步骤 1.3 使用终端运行程序 1.4 程序代码分析 2 C 程序运行机制流程 2.1 编写 2.2 预处理 2.3 编译 2.4 汇编 2.5 链接 2.6 运行 2.7 gcc 步骤指令 3 C 程序开发注意事项 4 注释 4.1 什么是注释 4.2 注释的作用 4…

Java面试八股之什么是AMQP协议

什么是AMQP协议 AMQP&#xff08;Advanced Message Queuing Protocol&#xff0c;高级消息队列协议&#xff09;是一个开放标准的应用层协议&#xff0c;旨在为消息中间件提供一种统一的、标准的通信方式。它允许消息在分布式系统中的应用程序之间进行可靠的、异步的传递。AMQ…

console调试

简介 浏览器的开发者工具为我们提供了强大的调试系统&#xff0c;可以用来查看DOM树结构、CSS样式调试、动画调试、JavaScript代码断点调试等。今天我们就来看看console调试的那些实用的调试技巧。 我们使用最多的就是console.log()了&#xff0c;当然多数情况下&#xff0c;…

0813,引用,函数重载,内存布局叭叭叭

是我4句话5个ERROR&#xff0c;阿巴阿巴 001_arrpointer.cc #include <iostream> using std::cout; using std::endl;void test(){int a[5]{1,2,3,4,5};int (*p)[5]&a;cout<<p<<endl;cout<<p1<<endl;int *pp(int*)(&a1);//第二个数组的…

vscode + cmake + ninja + ARMCC 配置stm32开发环境(构建篇)

vscode cmake ninja ARMCC 配置stm32开发环境&#xff08;构建篇&#xff09; 1. 前置环境 1.1 cmake安装 从CMake官网上下载CMake安装包进行安装CMake。CMake官网 安装完成之后&#xff0c;使用cmd查看cmake是否添加进入环境变量。 1.2 LLVM套件安装 从LLVM的github…

K8S上安装LongHorn(分布式块存储) --use

要在 Kubernetes上安装 LongHorn&#xff0c;您可以按照以下步骤进行操作&#xff1a; 一、准备工作 参考 官网教程将LongHorn只部署在k8s-worker5节点上。https://github.com/longhorn/longhorn 安装要求 Each node in the Kubernetes cluster where Longhorn is installe…

Java虚拟机:运行时内存结构

大家好&#xff0c;我是栗筝i&#xff0c;这篇文章是我的 “栗筝i 的 Java 技术栈” 专栏的第 035 篇文章&#xff0c;在 “栗筝i 的 Java 技术栈” 这个专栏中我会持续为大家更新 Java 技术相关全套技术栈内容。专栏的主要目标是已经有一定 Java 开发经验&#xff0c;并希望进…

人口老龄化社区服务与管理平台

TOC springboot136人口老龄化社区服务与管理平台 系统概述 1.1 研究背景 人口老龄化社区服务与管理平台是面向居家老人用户、社区的系统与信息平台&#xff0c;并在此基础上提供实时、快捷、高效、低成本的&#xff0c;物联化、互联化、智能化的人口老龄化社区服务服务。 …

CTFHub~SQL注入超简单详细教程

0x01整数型注入 # 本题告诉我们是整数型&#xff0c;所以就很容易了# 判断字段数量 1 order by 2# 判断回显点 -1 union select 1,2# 查询全部数据库名 -1 union select 1,group_concat(schema_name) from information_schema.schemata# 判断数据库中的表名 -1 union select 1…

Python采集爬取cnmo网站手机数据案例实现

前言 本例子利用Python爬虫爬取cnmo网站2020年至2022年11月的手机数据&#xff0c;并对其进行数据处理和可视化分析。 1、效果展示 如下如最终我们将得到一个包含手机型号、颜色、内存、价格及购买链接等的excel表以及dataframe和可视化效果。 2、需要用到的库 import panda…

【OpenCV——python】形态学变换 颜色空间 颜色替换 掩膜 旋转

形态学变换 形态学变换一般是处理二值图的腐蚀和膨胀操作&#xff0c;输入二值化图像和核&#xff0c;对图像进行类似卷积的操作 核 核是一定大小的区域&#xff0c;在原图中进行滑动计算 腐蚀erode 腐蚀过程 核在图像上滑动&#xff0c;对应位置相乘&#xff0c;最小值作为核…