今天我已经将腾讯云中一台CentOS 8升级到了CentOS Stream release 8。
升级之后使用万能的命令:
yum install php-*
[root@iZj6c4qh0axwf24pn6okloZ yum.repos.d]# cat /etc/centos-release
CentOS Stream release 8
[root@iZj6c4qh0axwf24pn6okloZ yum.repos.d]# yum install php-*
Repository epel is listed more than once in the configuration
Last metadata expiration check: 0:11:35 ago on Fri 16 Apr 2021 09:15:09 AM CST.
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Installing:
php-IDNA_Convert noarch 0.8.0-14.el8 epel 40 k
php-adodb noarch 5.20.6-9.el8 epel 338 k
php-bcmath x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 79 k
php-cli x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 3.1 M
php-common x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 661 k
php-dba x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 78 k
php-dbg x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 1.6 M
php-devel x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 712 k
php-embedded x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 1.5 M
php-enchant x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 63 k
php-fpm x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 1.6 M
php-gd x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 84 k
php-gmp x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 75 k
php-intl x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 192 k
php-json x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 73 k
php-ldap x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 79 k
php-mbstring x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 580 k
php-mysqlnd x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 190 k
php-odbc x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 88 k
php-opcache x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 231 k
php-pdo x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 122 k
php-pear noarch 1:1.10.5-9.module_el8.2.0+313+b04d0a66
appstream 358 k
php-pear-Auth-SASL noarch 1.1.0-6.el8 epel 21 k
php-pear-Cache-Lite
noarch 1.8.3-1.el8 epel 49 k
php-pear-Date noarch 1.4.7-22.el8 epel 57 k
php-pear-HTTP-Request
noarch 1.4.4-18.el8 epel 28 k
php-pear-Mail noarch 1.4.1-6.el8 epel 34 k
php-pear-Net-SMTP noarch 1.9.0-1.el8 epel 30 k
php-pear-Net-Socket
noarch 1.2.2-6.el8 epel 19 k
php-pear-Net-URL noarch 1.0.15-20.el8 epel 16 k
php-pear-Text-Diff noarch 1.2.2-9.el8 epel 36 k
php-pecl-apcu x86_64 5.1.12-2.module_el8.2.0+313+b04d0a66 appstream 65 k
php-pecl-apcu-devel
x86_64 5.1.12-2.module_el8.2.0+313+b04d0a66 appstream 46 k
php-pecl-zip x86_64 1.15.3-1.module_el8.2.0+313+b04d0a66 appstream 51 k
php-pgsql x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 117 k
php-process x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 84 k
php-recode x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 59 k
php-snmp x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 74 k
php-soap x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 177 k
php-xml x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 188 k
php-xmlrpc x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 appstream 89 k
php-xmpphp noarch 0.1-0.23.rc2.r77.el8 epel 31 k
Installing dependencies:
autoconf noarch 2.69-28.el8 appstream 711 k
automake noarch 1.16.1-7.el8 appstream 713 k
enchant x86_64 1:1.6.0-21.el8 appstream 66 k
gcc-c++ x86_64 8.4.1-1.el8 appstream 12 M
gd x86_64 2.2.5-7.el8 appstream 144 k
httpd-filesystem noarch 2.4.37-30.module_el8.3.0+462+ba287492.0.1
appstream 37 k
hunspell x86_64 1.6.2-1.el8 appstream 331 k
hunspell-en-GB noarch 0.20140811.1-12.el8 appstream 245 k
hunspell-en-US noarch 0.20140811.1-12.el8 appstream 196 k
jbigkit-libs x86_64 2.1-14.el8 appstream 55 k
libXpm x86_64 3.5.12-8.el8 appstream 58 k
libjpeg-turbo x86_64 1.5.3-10.el8 appstream 156 k
libpq x86_64 13.2-1.el8 appstream 197 k
libstdc++-devel x86_64 8.4.1-1.el8 appstream 2.0 M
libtiff x86_64 4.0.9-18.el8 appstream 188 k
libtool x86_64 2.4.6-25.el8 appstream 709 k
libtool-ltdl x86_64 2.4.6-25.el8 baseos 58 k
libwebp x86_64 1.0.0-1.el8 appstream 273 k
libzip x86_64 1.5.1-2.module_el8.2.0+313+b04d0a66 appstream 62 k
mariadb-connector-c
x86_64 3.1.11-2.el8_3 appstream 200 k
mariadb-connector-c-config
noarch 3.1.11-2.el8_3 appstream 15 k
net-snmp x86_64 1:5.8-20.el8 appstream 354 k
net-snmp-agent-libs
x86_64 1:5.8-20.el8 appstream 748 k
net-snmp-libs x86_64 1:5.8-20.el8 baseos 824 k
nginx-filesystem noarch 1:1.14.1-9.module_el8.0.0+184+e34fea82
appstream 24 k
pcre-cpp x86_64 8.42-4.el8 baseos 47 k
pcre-devel x86_64 8.42-4.el8 baseos 551 k
pcre-utf16 x86_64 8.42-4.el8 baseos 195 k
pcre-utf32 x86_64 8.42-4.el8 baseos 186 k
perl-Thread-Queue noarch 3.13-1.el8 appstream 24 k
recode x86_64 3.6-47.el8 appstream 724 k
tokyocabinet x86_64 1.4.48-10.el8 appstream 486 k
unixODBC x86_64 2.3.7-1.el8 appstream 458 k
Installing weak dependencies:
hunspell-en noarch 0.20140811.1-12.el8 appstream 200 k
Enabling module streams:
httpd 2.4
nginx 1.14
php 7.2
Transaction Summary
================================================================================
Install 76 Packages
Total download size: 36 M
Installed size: 115 M
Is this ok [y/N]:
发现安装PHP更加的智能了,那些不兼容的扩展不会“乱入”,并且很好的提示http、nginx、php版本:
Enabling module streams:
httpd 2.4
nginx 1.14
php 7.2
但是需要单独安装httpd、nginx、mariadb,安装httpd:
[root@iZj6c4qh0axwf24pn6okloZ yum.repos.d]# yum install httpd
Repository epel is listed more than once in the configuration
Last metadata expiration check: 0:36:50 ago on Fri 16 Apr 2021 09:15:09 AM CST.
Dependencies resolved.
=============================================================================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
httpd x86_64 2.4.37-30.module_el8.3.0+462+ba287492.0.1 appstream 1.7 M
Installing dependencies:
apr x86_64 1.6.3-11.el8 appstream 125 k
apr-util x86_64 1.6.1-6.el8 appstream 105 k
centos-logos-httpd noarch 82.0-2.el8 appstream 78 k
httpd-tools x86_64 2.4.37-30.module_el8.3.0+462+ba287492.0.1 appstream 104 k
mod_http2 x86_64 1.15.7-2.module_el8.3.0+477+498bb568 appstream 154 k
Installing weak dependencies:
apr-util-bdb x86_64 1.6.1-6.el8 appstream 25 k
apr-util-openssl x86_64 1.6.1-6.el8 appstream 27 k
Transaction Summary
=============================================================================================================================================================================================================================================
Install 8 Packages
Total download size: 2.3 M
Installed size: 6.0 M
Is this ok [y/N]:
安装nginx:
[root@iZj6c4qh0axwf24pn6okloZ yum.repos.d]# yum install nginx
Repository epel is listed more than once in the configuration
Last metadata expiration check: 0:38:16 ago on Fri 16 Apr 2021 09:15:09 AM CST.
Dependencies resolved.
=============================================================================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
nginx x86_64 1:1.14.1-9.module_el8.0.0+184+e34fea82 appstream 570 k
Installing dependencies:
nginx-all-modules noarch 1:1.14.1-9.module_el8.0.0+184+e34fea82 appstream 23 k
nginx-mod-http-image-filter x86_64 1:1.14.1-9.module_el8.0.0+184+e34fea82 appstream 35 k
nginx-mod-http-perl x86_64 1:1.14.1-9.module_el8.0.0+184+e34fea82 appstream 45 k
nginx-mod-http-xslt-filter x86_64 1:1.14.1-9.module_el8.0.0+184+e34fea82 appstream 33 k
nginx-mod-mail x86_64 1:1.14.1-9.module_el8.0.0+184+e34fea82 appstream 64 k
nginx-mod-stream x86_64 1:1.14.1-9.module_el8.0.0+184+e34fea82 appstream 85 k
Transaction Summary
=============================================================================================================================================================================================================================================
Install 7 Packages
Total download size: 857 k
Installed size: 2.0 M
Is this ok [y/N]:
安装mariadb:
[root@iZj6c4qh0axwf24pn6okloZ yum.repos.d]# yum install mariadb-server
Repository epel is listed more than once in the configuration
Last metadata expiration check: 0:38:46 ago on Fri 16 Apr 2021 09:15:09 AM CST.
Dependencies resolved.
=============================================================================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
mariadb-server x86_64 3:10.3.27-3.module_el8.3.0+599+c587b2e7 appstream 16 M
Installing dependencies:
mariadb x86_64 3:10.3.27-3.module_el8.3.0+599+c587b2e7 appstream 6.0 M
mariadb-common x86_64 3:10.3.27-3.module_el8.3.0+599+c587b2e7 appstream 63 k
mariadb-errmsg x86_64 3:10.3.27-3.module_el8.3.0+599+c587b2e7 appstream 234 k
perl-DBD-MySQL x86_64 4.046-3.module_el8.3.0+419+c2dec72b appstream 156 k
perl-DBI x86_64 1.641-3.module_el8.3.0+413+9be2aeb5 appstream 740 k
perl-Math-BigInt noarch 1:1.9998.11-7.el8 baseos 196 k
perl-Math-Complex noarch 1.59-419.el8 baseos 108 k
Installing weak dependencies:
mariadb-backup x86_64 3:10.3.27-3.module_el8.3.0+599+c587b2e7 appstream 6.0 M
mariadb-gssapi-server x86_64 3:10.3.27-3.module_el8.3.0+599+c587b2e7 appstream 51 k
mariadb-server-utils x86_64 3:10.3.27-3.module_el8.3.0+599+c587b2e7 appstream 1.1 M
Enabling module streams:
mariadb 10.3
perl-DBD-MySQL 4.046
perl-DBI 1.641
Transaction Summary
=============================================================================================================================================================================================================================================
Install 11 Packages
Total download size: 31 M
Installed size: 155 M
Is this ok [y/N]: