当前位置:   article > 正文

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

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

查看已安装的php软件包
  1. [root@iZbp13pl2v34qj0thwq9aiZ ~]# rpm -qa|grep php
  2. php74-php-common-7.4.26-1.el7.remi.x86_64
  3. oniguruma5php-6.9.7.1-1.el7.remi.x86_64
  4. php74-php-gd-7.4.26-1.el7.remi.x86_64
  5. php74-php-opcache-7.4.26-1.el7.remi.x86_64
  6. php74-php-json-7.4.26-1.el7.remi.x86_64
  7. php74-php-mbstring-7.4.26-1.el7.remi.x86_64
  8. php74-php-embedded-7.4.26-1.el7.remi.x86_64
  9. php74-runtime-1.0-3.el7.remi.x86_64
  10. php74-1.0-3.el7.remi.x86_64
  11. php74-php-mysqlnd-7.4.26-1.el7.remi.x86_64
  12. php74-php-fpm-7.4.26-1.el7.remi.x86_64
  13. php74-php-cli-7.4.26-1.el7.remi.x86_64
  14. php74-php-pdo-7.4.26-1.el7.remi.x86_64
  15. php74-php-intl-7.4.26-1.el7.remi.x86_64
  16. php74-php-xml-7.4.26-1.el7.remi.x86_64
搜索php82安装包
  1. [root@iZbp13pl2v34qj0thwq9aiZ ~]# yum search php82
  2. Loaded plugins: fastestmirror
  3. Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
  4. Loading mirror speeds from cached hostfile
  5. * remi-safe: ftp.riken.jp
  6. ====================================== N/S matched: php82 ======================================
  7. php82-runtime.x86_64 : Package that handles php82 Software Collection.
  8. php82-scldevel.x86_64 : Package shipping development files for php82
  9. php82-syspaths.x86_64 : System-wide wrappers for the php82 package
  10. php82.x86_64 : Package that installs PHP 8.2
  11. ......
安装php82软件包
  1. [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
  2. Loaded plugins: fastestmirror
  3. Loading mirror speeds from cached hostfile
  4. * remi-safe: ftp.riken.jp
  5. base | 3.6 kB 00:00:00
  6. epel | 4.3 kB 00:00:00
  7. extras | 2.9 kB 00:00:00
  8. https://packages.grafana.com/oss/rpm/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2a04:4e42:8c::729: Network is unreachable"
  9. Trying other mirror.
  10. 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')
  11. Trying other mirror.
  12. 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')
  13. Trying other mirror.
  14. grafana/signature | 712 B 00:00:00
  15. Retrieving key from https://packages.grafana.com/gpg.key
  16. Importing GPG key 0x10458545:
  17. Userid : "Grafana Labs <engineering@grafana.com>"
  18. Fingerprint: b53a e77b adb6 30a6 8304 6005 963f a277 1045 8545
  19. From : https://packages.grafana.com/gpg.key
  20. grafana/signature | 3.0 kB 00:00:00 !!!
  21. influxdb | 3.0 kB 00:00:00
  22. mysql-connectors-community | 2.6 kB 00:00:00
  23. mysql-tools-community | 2.6 kB 00:00:00
  24. mysql80-community | 2.6 kB 00:00:00
  25. remi-safe | 3.0 kB 00:00:00
  26. updates | 2.9 kB 00:00:00
  27. webtatic | 3.6 kB 00:00:00
  28. (1/11): epel/x86_64/group | 399 kB 00:00:00
  29. (2/11): epel/x86_64/updateinfo | 1.0 MB 00:00:00
  30. (3/11): extras/7/x86_64/primary_db | 253 kB 00:00:00
  31. (4/11): epel/x86_64/primary_db | 8.7 MB 00:00:00
  32. (5/11): influxdb/7/x86_64/primary_db | 95 kB 00:00:00
  33. (6/11): remi-safe/primary_db | 2.6 MB 00:00:00
  34. (7/11): updates/7/x86_64/primary_db | 27 MB 00:00:00
  35. (8/11): mysql-tools-community/x86_64/primary_db | 100 kB 00:00:02
  36. (9/11): mysql80-community/x86_64/primary_db | 299 kB 00:00:08
  37. mysql-connectors-community/x86 FAILED MB 00:00:07 ETA
  38. 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"
  39. Trying other mirror.
  40. (10/11): mysql-connectors-community/x86_64/primary_db | 117 kB 00:00:08
  41. grafana/primary_db FAILED MB 42:40:36 ETA
  42. 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')
  43. Trying other mirror.
  44. grafana/primary_db FAILED MB 46:30:30 ETA
  45. 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')
  46. Trying other mirror.
  47. (11/11): grafana/primary_db | 983 kB 00:00:59
  48. Resolving Dependencies
  49. --> Running transaction check
  50. ---> Package nginx.x86_64 1:1.20.1-10.el7 will be installed
  51. --> Processing Dependency: nginx-filesystem = 1:1.20.1-10.el7 for package: 1:nginx-1.20.1-10.el7.x86_64
  52. --> Processing Dependency: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) for package: 1:nginx-1.20.1-10.el7.x86_64
  53. --> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_0)(64bit) for package: 1:nginx-1.20.1-10.el7.x86_64
  54. --> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_1)(64bit) for package: 1:nginx-1.20.1-10.el7.x86_64
  55. --> Processing Dependency: nginx-filesystem for package: 1:nginx-1.20.1-10.el7.x86_64
  56. --> Processing Dependency: redhat-indexhtml for package: 1:nginx-1.20.1-10.el7.x86_64
  57. --> Processing Dependency: libcrypto.so.1.1()(64bit) for package: 1:nginx-1.20.1-10.el7.x86_64
  58. --> Processing Dependency: libprofiler.so.0()(64bit) for package: 1:nginx-1.20.1-10.el7.x86_64
  59. --> Processing Dependency: libssl.so.1.1()(64bit) for package: 1:nginx-1.20.1-10.el7.x86_64
  60. ---> Package php82-php.x86_64 0:8.2.20-1.el7.remi will be installed
  61. --> 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
  62. --> 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
  63. ---> Package php82-php-common.x86_64 0:8.2.20-1.el7.remi will be installed
  64. --> Processing Dependency: php82-runtime for package: php82-php-common-8.2.20-1.el7.remi.x86_64
  65. ---> Package php82-php-fpm.x86_64 0:8.2.20-1.el7.remi will be installed
  66. ---> Package php82-php-gd.x86_64 0:8.2.20-1.el7.remi will be installed
  67. --> Processing Dependency: libgd.so.103()(64bit) for package: php82-php-gd-8.2.20-1.el7.remi.x86_64
  68. ---> Package php82-php-mbstring.x86_64 0:8.2.20-1.el7.remi will be installed
  69. ---> Package php82-php-mysqlnd.x86_64 0:8.2.20-1.el7.remi will be installed
  70. --> 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
  71. ---> Package php82-php-pecl-zip.x86_64 0:1.22.3-1.el7.remi will be installed
  72. --> Processing Dependency: libzip5(x86-64) >= 1.10.1 for package: php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64
  73. --> Processing Dependency: libzip.so.5()(64bit) for package: php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64
  74. ---> Package php82-php-xml.x86_64 0:8.2.20-1.el7.remi will be installed
  75. --> Running transaction check
  76. ---> Package centos-indexhtml.noarch 0:7-9.el7.centos will be installed
  77. ---> Package gd-last.x86_64 0:2.3.3-2.el7.remi will be obsoleted
  78. --> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php74-php-gd-7.4.26-1.el7.remi.x86_64
  79. --> Processing Dependency: libgd.so.3()(64bit) for package: php74-php-gd-7.4.26-1.el7.remi.x86_64
  80. ---> Package gd3php.x86_64 0:2.3.3-7.el7.remi will be obsoleting
  81. ---> Package gperftools-libs.x86_64 0:2.6.1-1.el7 will be installed
  82. ---> Package libzip5.x86_64 0:1.10.1-1.el7.remi will be installed
  83. ---> Package nginx-filesystem.noarch 1:1.20.1-10.el7 will be installed
  84. ---> Package openssl11-libs.x86_64 1:1.1.1k-7.el7 will be installed
  85. ---> Package php82-php-cli.x86_64 0:8.2.20-1.el7.remi will be installed
  86. ---> Package php82-php-pdo.x86_64 0:8.2.20-1.el7.remi will be installed
  87. ---> Package php82-php-sodium.x86_64 0:8.2.20-1.el7.remi will be installed
  88. --> Processing Dependency: libsodium.so.23()(64bit) for package: php82-php-sodium-8.2.20-1.el7.remi.x86_64
  89. ---> Package php82-runtime.x86_64 0:8.2-5.el7.remi will be installed
  90. --> Running transaction check
  91. ---> Package libsodium.x86_64 0:1.0.18-1.el7 will be installed
  92. ---> Package php74-php-gd.x86_64 0:7.4.26-1.el7.remi will be updated
  93. ---> Package php74-php-gd.x86_64 0:7.4.33-15.el7.remi will be an update
  94. --> 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
  95. --> Running transaction check
  96. ---> Package php74-php-common.x86_64 0:7.4.26-1.el7.remi will be updated
  97. --> 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
  98. --> 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
  99. --> 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
  100. --> 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
  101. --> 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
  102. --> 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
  103. --> 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
  104. --> 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
  105. --> 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
  106. ---> Package php74-php-common.x86_64 0:7.4.33-15.el7.remi will be an update
  107. --> Running transaction check
  108. ---> Package php74-php-cli.x86_64 0:7.4.26-1.el7.remi will be updated
  109. ---> Package php74-php-cli.x86_64 0:7.4.33-15.el7.remi will be an update
  110. ---> Package php74-php-embedded.x86_64 0:7.4.26-1.el7.remi will be updated
  111. ---> Package php74-php-embedded.x86_64 0:7.4.33-15.el7.remi will be an update
  112. ---> Package php74-php-fpm.x86_64 0:7.4.26-1.el7.remi will be updated
  113. ---> Package php74-php-fpm.x86_64 0:7.4.33-15.el7.remi will be an update
  114. ---> Package php74-php-intl.x86_64 0:7.4.26-1.el7.remi will be updated
  115. ---> Package php74-php-intl.x86_64 0:7.4.33-15.el7.remi will be an update
  116. --> Processing Dependency: libicudata.so.73()(64bit) for package: php74-php-intl-7.4.33-15.el7.remi.x86_64
  117. --> Processing Dependency: libicui18n.so.73()(64bit) for package: php74-php-intl-7.4.33-15.el7.remi.x86_64
  118. --> Processing Dependency: libicuio.so.73()(64bit) for package: php74-php-intl-7.4.33-15.el7.remi.x86_64
  119. --> Processing Dependency: libicuuc.so.73()(64bit) for package: php74-php-intl-7.4.33-15.el7.remi.x86_64
  120. ---> Package php74-php-json.x86_64 0:7.4.26-1.el7.remi will be updated
  121. ---> Package php74-php-json.x86_64 0:7.4.33-15.el7.remi will be an update
  122. ---> Package php74-php-mbstring.x86_64 0:7.4.26-1.el7.remi will be updated
  123. ---> Package php74-php-mbstring.x86_64 0:7.4.33-15.el7.remi will be an update
  124. ---> Package php74-php-opcache.x86_64 0:7.4.26-1.el7.remi will be updated
  125. ---> Package php74-php-opcache.x86_64 0:7.4.33-15.el7.remi will be an update
  126. ---> Package php74-php-pdo.x86_64 0:7.4.26-1.el7.remi will be updated
  127. --> 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
  128. ---> Package php74-php-pdo.x86_64 0:7.4.33-15.el7.remi will be an update
  129. ---> Package php74-php-xml.x86_64 0:7.4.26-1.el7.remi will be updated
  130. ---> Package php74-php-xml.x86_64 0:7.4.33-15.el7.remi will be an update
  131. --> Running transaction check
  132. ---> Package libicu73.x86_64 0:73.2-1.el7.remi will be installed
  133. ---> Package php74-php-mysqlnd.x86_64 0:7.4.26-1.el7.remi will be updated
  134. ---> Package php74-php-mysqlnd.x86_64 0:7.4.33-15.el7.remi will be an update
  135. --> Finished Dependency Resolution
  136. Dependencies Resolved
  137. ================================================================================================
  138. Package Arch Version Repository Size
  139. ================================================================================================
  140. Installing:
  141. gd3php x86_64 2.3.3-7.el7.remi remi-safe 138 k
  142. replacing gd-last.x86_64 2.3.3-2.el7.remi
  143. nginx x86_64 1:1.20.1-10.el7 epel 588 k
  144. php82-php x86_64 8.2.20-1.el7.remi remi-safe 2.0 M
  145. php82-php-common x86_64 8.2.20-1.el7.remi remi-safe 744 k
  146. php82-php-fpm x86_64 8.2.20-1.el7.remi remi-safe 2.1 M
  147. php82-php-gd x86_64 8.2.20-1.el7.remi remi-safe 99 k
  148. php82-php-mbstring x86_64 8.2.20-1.el7.remi remi-safe 542 k
  149. php82-php-mysqlnd x86_64 8.2.20-1.el7.remi remi-safe 199 k
  150. php82-php-pecl-zip x86_64 1.22.3-1.el7.remi remi-safe 60 k
  151. php82-php-xml x86_64 8.2.20-1.el7.remi remi-safe 199 k
  152. Installing for dependencies:
  153. centos-indexhtml noarch 7-9.el7.centos base 92 k
  154. gperftools-libs x86_64 2.6.1-1.el7 base 272 k
  155. libicu73 x86_64 73.2-1.el7.remi remi-safe 10 M
  156. libsodium x86_64 1.0.18-1.el7 epel 147 k
  157. libzip5 x86_64 1.10.1-1.el7.remi remi-safe 67 k
  158. nginx-filesystem noarch 1:1.20.1-10.el7 epel 24 k
  159. openssl11-libs x86_64 1:1.1.1k-7.el7 epel 1.5 M
  160. php82-php-cli x86_64 8.2.20-1.el7.remi remi-safe 4.1 M
  161. php82-php-pdo x86_64 8.2.20-1.el7.remi remi-safe 142 k
  162. php82-php-sodium x86_64 8.2.20-1.el7.remi remi-safe 97 k
  163. php82-runtime x86_64 8.2-5.el7.remi remi-safe 1.1 M
  164. Updating for dependencies:
  165. php74-php-cli x86_64 7.4.33-15.el7.remi remi-safe 3.5 M
  166. php74-php-common x86_64 7.4.33-15.el7.remi remi-safe 702 k
  167. php74-php-embedded x86_64 7.4.33-15.el7.remi remi-safe 1.7 M
  168. php74-php-fpm x86_64 7.4.33-15.el7.remi remi-safe 1.8 M
  169. php74-php-gd x86_64 7.4.33-15.el7.remi remi-safe 91 k
  170. php74-php-intl x86_64 7.4.33-15.el7.remi remi-safe 199 k
  171. php74-php-json x86_64 7.4.33-15.el7.remi remi-safe 80 k
  172. php74-php-mbstring x86_64 7.4.33-15.el7.remi remi-safe 490 k
  173. php74-php-mysqlnd x86_64 7.4.33-15.el7.remi remi-safe 198 k
  174. php74-php-opcache x86_64 7.4.33-15.el7.remi remi-safe 273 k
  175. php74-php-pdo x86_64 7.4.33-15.el7.remi remi-safe 128 k
  176. php74-php-xml x86_64 7.4.33-15.el7.remi remi-safe 179 k
  177. Transaction Summary
  178. ================================================================================================
  179. Install 10 Packages (+11 Dependent packages)
  180. Upgrade ( 12 Dependent packages)
  181. Total download size: 34 M
  182. Downloading packages:
  183. Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
  184. (1/33): centos-indexhtml-7-9.el7.centos.noarch.rpm | 92 kB 00:00:00
  185. (2/33): gperftools-libs-2.6.1-1.el7.x86_64.rpm | 272 kB 00:00:00
  186. (3/33): libsodium-1.0.18-1.el7.x86_64.rpm | 147 kB 00:00:00
  187. (4/33): gd3php-2.3.3-7.el7.remi.x86_64.rpm | 138 kB 00:00:00
  188. (5/33): libzip5-1.10.1-1.el7.remi.x86_64.rpm | 67 kB 00:00:00
  189. (6/33): nginx-1.20.1-10.el7.x86_64.rpm | 588 kB 00:00:00
  190. (7/33): nginx-filesystem-1.20.1-10.el7.noarch.rpm | 24 kB 00:00:00
  191. (8/33): openssl11-libs-1.1.1k-7.el7.x86_64.rpm | 1.5 MB 00:00:00
  192. (9/33): php74-php-cli-7.4.33-15.el7.remi.x86_64.rpm | 3.5 MB 00:00:00
  193. (10/33): libicu73-73.2-1.el7.remi.x86_64.rpm | 10 MB 00:00:00
  194. (11/33): php74-php-common-7.4.33-15.el7.remi.x86_64.rpm | 702 kB 00:00:00
  195. (12/33): php74-php-embedded-7.4.33-15.el7.remi.x86_64.rpm | 1.7 MB 00:00:00
  196. (13/33): php74-php-gd-7.4.33-15.el7.remi.x86_64.rpm | 91 kB 00:00:00
  197. (14/33): php74-php-fpm-7.4.33-15.el7.remi.x86_64.rpm | 1.8 MB 00:00:00
  198. (15/33): php74-php-intl-7.4.33-15.el7.remi.x86_64.rpm | 199 kB 00:00:00
  199. (16/33): php74-php-json-7.4.33-15.el7.remi.x86_64.rpm | 80 kB 00:00:00
  200. (17/33): php74-php-mbstring-7.4.33-15.el7.remi.x86_64.rpm | 490 kB 00:00:00
  201. (18/33): php74-php-mysqlnd-7.4.33-15.el7.remi.x86_64.rpm | 198 kB 00:00:00
  202. (19/33): php74-php-opcache-7.4.33-15.el7.remi.x86_64.rpm | 273 kB 00:00:00
  203. (20/33): php74-php-pdo-7.4.33-15.el7.remi.x86_64.rpm | 128 kB 00:00:00
  204. (21/33): php74-php-xml-7.4.33-15.el7.remi.x86_64.rpm | 179 kB 00:00:00
  205. (22/33): php82-php-8.2.20-1.el7.remi.x86_64.rpm | 2.0 MB 00:00:00
  206. (23/33): php82-php-cli-8.2.20-1.el7.remi.x86_64.rpm | 4.1 MB 00:00:00
  207. (24/33): php82-php-common-8.2.20-1.el7.remi.x86_64.rpm | 744 kB 00:00:00
  208. (25/33): php82-php-fpm-8.2.20-1.el7.remi.x86_64.rpm | 2.1 MB 00:00:00
  209. (26/33): php82-php-mbstring-8.2.20-1.el7.remi.x86_64.rpm | 542 kB 00:00:00
  210. (27/33): php82-php-mysqlnd-8.2.20-1.el7.remi.x86_64.rpm | 199 kB 00:00:00
  211. (28/33): php82-php-pdo-8.2.20-1.el7.remi.x86_64.rpm | 142 kB 00:00:00
  212. (29/33): php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64.rpm | 60 kB 00:00:00
  213. (30/33): php82-php-sodium-8.2.20-1.el7.remi.x86_64.rpm | 97 kB 00:00:00
  214. (31/33): php82-php-gd-8.2.20-1.el7.remi.x86_64.rpm | 99 kB 00:00:00
  215. (32/33): php82-php-xml-8.2.20-1.el7.remi.x86_64.rpm | 199 kB 00:00:00
  216. (33/33): php82-runtime-8.2-5.el7.remi.x86_64.rpm | 1.1 MB 00:00:00
  217. ------------------------------------------------------------------------------------------------
  218. Total 14 MB/s | 34 MB 00:00:02
  219. Running transaction check
  220. Running transaction test
  221. Transaction test succeeded
  222. Running transaction
  223. Updating : php74-php-json-7.4.33-15.el7.remi.x86_64 1/46
  224. Updating : php74-php-common-7.4.33-15.el7.remi.x86_64 2/46
  225. Installing : gd3php-2.3.3-7.el7.remi.x86_64 3/46
  226. Installing : php82-runtime-8.2-5.el7.remi.x86_64 4/46
  227. Installing : php82-php-common-8.2.20-1.el7.remi.x86_64 5/46
  228. Installing : php82-php-cli-8.2.20-1.el7.remi.x86_64 6/46
  229. Installing : php82-php-pdo-8.2.20-1.el7.remi.x86_64 7/46
  230. Updating : php74-php-pdo-7.4.33-15.el7.remi.x86_64 8/46
  231. Installing : gperftools-libs-2.6.1-1.el7.x86_64 9/46
  232. Installing : libicu73-73.2-1.el7.remi.x86_64 10/46
  233. Installing : centos-indexhtml-7-9.el7.centos.noarch 11/46
  234. Installing : 1:nginx-filesystem-1.20.1-10.el7.noarch 12/46
  235. Installing : libsodium-1.0.18-1.el7.x86_64 13/46
  236. Installing : php82-php-sodium-8.2.20-1.el7.remi.x86_64 14/46
  237. Installing : 1:openssl11-libs-1.1.1k-7.el7.x86_64 15/46
  238. Installing : libzip5-1.10.1-1.el7.remi.x86_64 16/46
  239. Installing : php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64 17/46
  240. Installing : 1:nginx-1.20.1-10.el7.x86_64 18/46
  241. Installing : php82-php-8.2.20-1.el7.remi.x86_64 19/46
  242. Updating : php74-php-intl-7.4.33-15.el7.remi.x86_64 20/46
  243. Updating : php74-php-mysqlnd-7.4.33-15.el7.remi.x86_64 21/46
  244. Installing : php82-php-mysqlnd-8.2.20-1.el7.remi.x86_64 22/46
  245. Installing : php82-php-gd-8.2.20-1.el7.remi.x86_64 23/46
  246. Installing : php82-php-fpm-8.2.20-1.el7.remi.x86_64 24/46
  247. Installing : php82-php-mbstring-8.2.20-1.el7.remi.x86_64 25/46
  248. Installing : php82-php-xml-8.2.20-1.el7.remi.x86_64 26/46
  249. Updating : php74-php-gd-7.4.33-15.el7.remi.x86_64 27/46
  250. Updating : php74-php-mbstring-7.4.33-15.el7.remi.x86_64 28/46
  251. Updating : php74-php-fpm-7.4.33-15.el7.remi.x86_64 29/46
  252. Updating : php74-php-cli-7.4.33-15.el7.remi.x86_64 30/46
  253. Updating : php74-php-xml-7.4.33-15.el7.remi.x86_64 31/46
  254. Updating : php74-php-opcache-7.4.33-15.el7.remi.x86_64 32/46
  255. Updating : php74-php-embedded-7.4.33-15.el7.remi.x86_64 33/46
  256. Cleanup : php74-php-gd-7.4.26-1.el7.remi.x86_64 34/46
  257. Cleanup : php74-php-embedded-7.4.26-1.el7.remi.x86_64 35/46
  258. Cleanup : php74-php-mysqlnd-7.4.26-1.el7.remi.x86_64 36/46
  259. Cleanup : php74-php-pdo-7.4.26-1.el7.remi.x86_64 37/46
  260. Cleanup : php74-php-opcache-7.4.26-1.el7.remi.x86_64 38/46
  261. Cleanup : php74-php-xml-7.4.26-1.el7.remi.x86_64 39/46
  262. Cleanup : php74-php-cli-7.4.26-1.el7.remi.x86_64 40/46
  263. Cleanup : php74-php-fpm-7.4.26-1.el7.remi.x86_64 41/46
  264. Cleanup : php74-php-intl-7.4.26-1.el7.remi.x86_64 42/46
  265. Cleanup : php74-php-mbstring-7.4.26-1.el7.remi.x86_64 43/46
  266. Cleanup : php74-php-json-7.4.26-1.el7.remi.x86_64 44/46
  267. Cleanup : php74-php-common-7.4.26-1.el7.remi.x86_64 45/46
  268. Erasing : gd-last-2.3.3-2.el7.remi.x86_64 46/46
  269. =====================================================================
  270. WARNING : PHP 7.4 have reached its "End of Life" in
  271. November 2022. Even, if this package includes some of
  272. the important security fixes, backported from 8.1, the
  273. UPGRADE to a maintained version is very strongly RECOMMENDED.
  274. =====================================================================
  275. Verifying : php74-php-mbstring-7.4.33-15.el7.remi.x86_64 1/46
  276. Verifying : php82-php-common-8.2.20-1.el7.remi.x86_64 2/46
  277. Verifying : php82-php-gd-8.2.20-1.el7.remi.x86_64 3/46
  278. Verifying : libzip5-1.10.1-1.el7.remi.x86_64 4/46
  279. Verifying : php74-php-pdo-7.4.33-15.el7.remi.x86_64 5/46
  280. Verifying : php74-php-common-7.4.33-15.el7.remi.x86_64 6/46
  281. Verifying : php82-php-cli-8.2.20-1.el7.remi.x86_64 7/46
  282. Verifying : php74-php-intl-7.4.33-15.el7.remi.x86_64 8/46
  283. Verifying : php82-runtime-8.2-5.el7.remi.x86_64 9/46
  284. Verifying : php82-php-fpm-8.2.20-1.el7.remi.x86_64 10/46
  285. Verifying : php74-php-gd-7.4.33-15.el7.remi.x86_64 11/46
  286. Verifying : php74-php-fpm-7.4.33-15.el7.remi.x86_64 12/46
  287. Verifying : php82-php-mysqlnd-8.2.20-1.el7.remi.x86_64 13/46
  288. Verifying : php82-php-pdo-8.2.20-1.el7.remi.x86_64 14/46
  289. Verifying : 1:openssl11-libs-1.1.1k-7.el7.x86_64 15/46
  290. Verifying : php74-php-cli-7.4.33-15.el7.remi.x86_64 16/46
  291. Verifying : php82-php-mbstring-8.2.20-1.el7.remi.x86_64 17/46
  292. Verifying : 1:nginx-1.20.1-10.el7.x86_64 18/46
  293. Verifying : libsodium-1.0.18-1.el7.x86_64 19/46
  294. Verifying : gd3php-2.3.3-7.el7.remi.x86_64 20/46
  295. Verifying : php82-php-8.2.20-1.el7.remi.x86_64 21/46
  296. Verifying : 1:nginx-filesystem-1.20.1-10.el7.noarch 22/46
  297. Verifying : php74-php-json-7.4.33-15.el7.remi.x86_64 23/46
  298. Verifying : php82-php-sodium-8.2.20-1.el7.remi.x86_64 24/46
  299. Verifying : php74-php-xml-7.4.33-15.el7.remi.x86_64 25/46
  300. Verifying : centos-indexhtml-7-9.el7.centos.noarch 26/46
  301. Verifying : libicu73-73.2-1.el7.remi.x86_64 27/46
  302. Verifying : php74-php-opcache-7.4.33-15.el7.remi.x86_64 28/46
  303. Verifying : php82-php-xml-8.2.20-1.el7.remi.x86_64 29/46
  304. Verifying : php74-php-mysqlnd-7.4.33-15.el7.remi.x86_64 30/46
  305. Verifying : gperftools-libs-2.6.1-1.el7.x86_64 31/46
  306. Verifying : php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64 32/46
  307. Verifying : php74-php-embedded-7.4.33-15.el7.remi.x86_64 33/46
  308. Verifying : php74-php-common-7.4.26-1.el7.remi.x86_64 34/46
  309. Verifying : php74-php-fpm-7.4.26-1.el7.remi.x86_64 35/46
  310. Verifying : php74-php-cli-7.4.26-1.el7.remi.x86_64 36/46
  311. Verifying : php74-php-gd-7.4.26-1.el7.remi.x86_64 37/46
  312. Verifying : php74-php-mbstring-7.4.26-1.el7.remi.x86_64 38/46
  313. Verifying : php74-php-mysqlnd-7.4.26-1.el7.remi.x86_64 39/46
  314. Verifying : php74-php-xml-7.4.26-1.el7.remi.x86_64 40/46
  315. Verifying : php74-php-pdo-7.4.26-1.el7.remi.x86_64 41/46
  316. Verifying : php74-php-embedded-7.4.26-1.el7.remi.x86_64 42/46
  317. Verifying : php74-php-json-7.4.26-1.el7.remi.x86_64 43/46
  318. Verifying : php74-php-opcache-7.4.26-1.el7.remi.x86_64 44/46
  319. Verifying : gd-last-2.3.3-2.el7.remi.x86_64 45/46
  320. Verifying : php74-php-intl-7.4.26-1.el7.remi.x86_64 46/46
  321. Installed:
  322. gd3php.x86_64 0:2.3.3-7.el7.remi nginx.x86_64 1:1.20.1-10.el7
  323. php82-php.x86_64 0:8.2.20-1.el7.remi php82-php-common.x86_64 0:8.2.20-1.el7.remi
  324. php82-php-fpm.x86_64 0:8.2.20-1.el7.remi php82-php-gd.x86_64 0:8.2.20-1.el7.remi
  325. php82-php-mbstring.x86_64 0:8.2.20-1.el7.remi php82-php-mysqlnd.x86_64 0:8.2.20-1.el7.remi
  326. 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
  327. Dependency Installed:
  328. centos-indexhtml.noarch 0:7-9.el7.centos gperftools-libs.x86_64 0:2.6.1-1.el7
  329. libicu73.x86_64 0:73.2-1.el7.remi libsodium.x86_64 0:1.0.18-1.el7
  330. libzip5.x86_64 0:1.10.1-1.el7.remi nginx-filesystem.noarch 1:1.20.1-10.el7
  331. openssl11-libs.x86_64 1:1.1.1k-7.el7 php82-php-cli.x86_64 0:8.2.20-1.el7.remi
  332. php82-php-pdo.x86_64 0:8.2.20-1.el7.remi php82-php-sodium.x86_64 0:8.2.20-1.el7.remi
  333. php82-runtime.x86_64 0:8.2-5.el7.remi
  334. Dependency Updated:
  335. php74-php-cli.x86_64 0:7.4.33-15.el7.remi php74-php-common.x86_64 0:7.4.33-15.el7.remi
  336. php74-php-embedded.x86_64 0:7.4.33-15.el7.remi php74-php-fpm.x86_64 0:7.4.33-15.el7.remi
  337. php74-php-gd.x86_64 0:7.4.33-15.el7.remi php74-php-intl.x86_64 0:7.4.33-15.el7.remi
  338. php74-php-json.x86_64 0:7.4.33-15.el7.remi php74-php-mbstring.x86_64 0:7.4.33-15.el7.remi
  339. php74-php-mysqlnd.x86_64 0:7.4.33-15.el7.remi php74-php-opcache.x86_64 0:7.4.33-15.el7.remi
  340. php74-php-pdo.x86_64 0:7.4.33-15.el7.remi php74-php-xml.x86_64 0:7.4.33-15.el7.remi
  341. Replaced:
  342. gd-last.x86_64 0:2.3.3-2.el7.remi
  343. Complete!
检查是否安装了新软件包
  1. [root@iZbp13pl2v34qj0thwq9aiZ ~]# rpm -qa|grep php
  2. oniguruma5php-6.9.7.1-1.el7.remi.x86_64
  3. php74-php-common-7.4.33-15.el7.remi.x86_64
  4. php82-php-cli-8.2.20-1.el7.remi.x86_64
  5. php82-php-sodium-8.2.20-1.el7.remi.x86_64
  6. php82-php-mysqlnd-8.2.20-1.el7.remi.x86_64
  7. php82-php-xml-8.2.20-1.el7.remi.x86_64
  8. php74-php-cli-7.4.33-15.el7.remi.x86_64
  9. php74-php-json-7.4.33-15.el7.remi.x86_64
  10. php82-php-common-8.2.20-1.el7.remi.x86_64
  11. php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64
  12. php74-php-mysqlnd-7.4.33-15.el7.remi.x86_64
  13. php82-php-mbstring-8.2.20-1.el7.remi.x86_64
  14. php74-php-fpm-7.4.33-15.el7.remi.x86_64
  15. php74-php-embedded-7.4.33-15.el7.remi.x86_64
  16. php74-runtime-1.0-3.el7.remi.x86_64
  17. php74-1.0-3.el7.remi.x86_64
  18. php82-runtime-8.2-5.el7.remi.x86_64
  19. php74-php-pdo-7.4.33-15.el7.remi.x86_64
  20. php74-php-intl-7.4.33-15.el7.remi.x86_64
  21. php82-php-fpm-8.2.20-1.el7.remi.x86_64
  22. php74-php-mbstring-7.4.33-15.el7.remi.x86_64
  23. php74-php-opcache-7.4.33-15.el7.remi.x86_64
  24. gd3php-2.3.3-7.el7.remi.x86_64
  25. php82-php-pdo-8.2.20-1.el7.remi.x86_64
  26. php82-php-8.2.20-1.el7.remi.x86_64
  27. php82-php-gd-8.2.20-1.el7.remi.x86_64
  28. php74-php-gd-7.4.33-15.el7.remi.x86_64
  29. php74-php-xml-7.4.33-15.el7.remi.x86_64
  30. [root@iZbp13pl2v34qj0thwq9aiZ ~]# rpm -qa|grep php82
  31. php82-php-cli-8.2.20-1.el7.remi.x86_64
  32. php82-php-sodium-8.2.20-1.el7.remi.x86_64
  33. php82-php-mysqlnd-8.2.20-1.el7.remi.x86_64
  34. php82-php-xml-8.2.20-1.el7.remi.x86_64
  35. php82-php-common-8.2.20-1.el7.remi.x86_64
  36. php82-php-pecl-zip-1.22.3-1.el7.remi.x86_64
  37. php82-php-mbstring-8.2.20-1.el7.remi.x86_64
  38. php82-runtime-8.2-5.el7.remi.x86_64
  39. php82-php-fpm-8.2.20-1.el7.remi.x86_64
  40. php82-php-pdo-8.2.20-1.el7.remi.x86_64
  41. php82-php-8.2.20-1.el7.remi.x86_64
  42. php82-php-gd-8.2.20-1.el7.remi.x86_64
  43. [root@iZbp13pl2v34qj0thwq9aiZ ~]# rpm -qa|grep php74
  44. php74-php-common-7.4.33-15.el7.remi.x86_64
  45. php74-php-cli-7.4.33-15.el7.remi.x86_64
  46. php74-php-json-7.4.33-15.el7.remi.x86_64
  47. php74-php-mysqlnd-7.4.33-15.el7.remi.x86_64
  48. php74-php-fpm-7.4.33-15.el7.remi.x86_64
  49. php74-php-embedded-7.4.33-15.el7.remi.x86_64
  50. php74-runtime-1.0-3.el7.remi.x86_64
  51. php74-1.0-3.el7.remi.x86_64
  52. php74-php-pdo-7.4.33-15.el7.remi.x86_64
  53. php74-php-intl-7.4.33-15.el7.remi.x86_64
  54. php74-php-mbstring-7.4.33-15.el7.remi.x86_64
  55. php74-php-opcache-7.4.33-15.el7.remi.x86_64
  56. php74-php-gd-7.4.33-15.el7.remi.x86_64
  57. php74-php-xml-7.4.33-15.el7.remi.x86_64
  58. [root@iZbp13pl2v34qj0thwq9aiZ ~]# php82 -v
  59. PHP 8.2.20 (cli) (built: Jun 4 2024 13:22:51) (NTS gcc x86_64)
  60. Copyright (c) The PHP Group
  61. Zend Engine v4.2.20, Copyright (c) Zend Technologies
查看原php-fpm运行的端口,并切换成php82版本的
  1. [root@iZbp13pl2v34qj0thwq9aiZ ~]# netstat -natup|grep php
  2. tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 31329/php-fpm: mast
  3. [root@iZbp13pl2v34qj0thwq9aiZ ~]# systemctl stop php74-php-fpm
  4. [root@iZbp13pl2v34qj0thwq9aiZ ~]# systemctl start php82-php-fpm
  5. [root@iZbp13pl2v34qj0thwq9aiZ ~]# systemctl enable php82-php-fpm
  6. Created symlink from /etc/systemd/system/multi-user.target.wants/php82-php-fpm.service to /usr/lib/systemd/system/php82-php-fpm.service.
  7. [root@iZbp13pl2v34qj0thwq9aiZ ~]# restart httpd.service
  8. -bash: restart: command not found
  9. [root@iZbp13pl2v34qj0thwq9aiZ ~]# systemctl restart httpd.service
  10. [root@iZbp13pl2v34qj0thwq9aiZ ~]# netstat -natup|grep php
  11. tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 31433/php-fpm: mast
(这里忘了在启动服务中停用php74的链接,补上)
  1. [root@iZbp13pl2v34qj0thwq9aiZ ~]# systemctl disable php74-php-fpm
  2. Removed symlink /etc/systemd/system/multi-user.target.wants/php74-php-fpm.service.
  3. [root@iZbp13pl2v34qj0thwq9aiZ ~]# ls /etc/systemd/system/multi-user.target.wants/
  4. aegis.service cloud-final.service httpd.service rhel-configure.service var-lib-snapd-snap-core-16928.mount
  5. aliyun.service cloud-init-local.service influxdb.service rsyslog.service var-lib-snapd-snap-core-17200.mount
  6. AssistDaemon.service cloud-init.service irqbalance.service sshd.service var-lib-snapd-snap-core20-2264.mount
  7. atd.service CmsGoAgent.service mysqld.service sysstat.service var-lib-snapd-snap-core20-2318.mount
  8. auditd.service crond.service php82-php-fpm.service tuned.service
  9. chronyd.service ecs_mq.service postfix.service var-lib-snapd-snap-certbot-3700.mount
  10. cloud-config.service grafana-server.service remote-fs.target var-lib-snapd-snap-certbot-3834.mount
再进phpMyAdmin时,可以看到版本已经是8.2了

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/998471
推荐阅读
相关标签
  

闽ICP备14008679号