yum update异常中断问题2

1、执行yum check命令
yum check报错

已加载插件:fastestmirror
32:bind-export-libs-9.11.4-26.P2.el7_9.5.x86_64 是 32:bind-export-libs-9.11.4-26.P2.el7_9.4.x86_64 的副本
7:device-mapper-1.02.170-6.el7_9.5.x86_64 是 7:device-mapper-1.02.170-6.el7_9.4.x86_64 的副本
7:device-mapper-libs-1.02.170-6.el7_9.5.x86_64 是 7:device-mapper-libs-1.02.170-6.el7_9.4.x86_64 的副本
firewalld-0.6.3-13.el7_9.noarch 是 firewalld-0.6.3-12.el7.noarch 的副本
firewalld-filesystem-0.6.3-13.el7_9.noarch 是 firewalld-filesystem-0.6.3-12.el7.noarch 的副本
glibc-common-2.17-323.el7_9.x86_64 有缺少的需求 glibc = ('0', '2.17', '323.el7_9')
glibc-common-2.17-324.el7_9.x86_64 是 glibc-common-2.17-323.el7_9.x86_64 的副本
glibc-devel-2.17-323.el7_9.x86_64 有缺少的需求 glibc = ('0', '2.17', '323.el7_9')
glibc-devel-2.17-324.el7_9.x86_64 是 glibc-devel-2.17-323.el7_9.x86_64 的副本
glibc-headers-2.17-323.el7_9.x86_64 有缺少的需求 glibc = ('0', '2.17', '323.el7_9')
glibc-headers-2.17-324.el7_9.x86_64 是 glibc-headers-2.17-323.el7_9.x86_64 的副本
kernel-headers-3.10.0-1160.25.1.el7.x86_64 是 kernel-headers-3.10.0-1160.24.1.el7.x86_64 的副本
kernel-tools-3.10.0-1160.25.1.el7.x86_64 是 kernel-tools-3.10.0-1160.24.1.el7.x86_64 的副本
kernel-tools-libs-3.10.0-1160.25.1.el7.x86_64 是 kernel-tools-libs-3.10.0-1160.24.1.el7.x86_64 的副本
kexec-tools-2.0.15-51.el7_9.2.x86_64 是 kexec-tools-2.0.15-51.el7_9.1.x86_64 的副本
libstdc++-4.8.5-44.el7.i686 有缺少的需求 ld-linux.so.2
libstdc++-4.8.5-44.el7.i686 有缺少的需求 ld-linux.so.2(GLIBC_2.3)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.0)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.1)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.1.3)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.2)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.3)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.3.2)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.4)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libm.so.6
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libm.so.6(GLIBC_2.0)
nss-3.53.1-7.el7_9.x86_64 是 nss-3.53.1-3.el7_9.x86_64 的副本
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6(GLIBC_2.0)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6(GLIBC_2.1)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6(GLIBC_2.1.3)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6(GLIBC_2.3)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6(GLIBC_2.3.4)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6(GLIBC_2.4)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libdl.so.2
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libdl.so.2(GLIBC_2.0)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libdl.so.2(GLIBC_2.1)
nss-sysinit-3.53.1-7.el7_9.x86_64 是 nss-sysinit-3.53.1-3.el7_9.x86_64 的副本
nss-tools-3.53.1-7.el7_9.x86_64 是 nss-tools-3.53.1-3.el7_9.x86_64 的副本
openldap-2.4.44-23.el7_9.x86_64 是 openldap-2.4.44-22.el7.x86_64 的副本
python-firewall-0.6.3-13.el7_9.noarch 是 python-firewall-0.6.3-12.el7.noarch 的副本
python-perf-3.10.0-1160.25.1.el7.x86_64 是 python-perf-3.10.0-1160.24.1.el7.x86_64 的副本
错误:check all

继续阅读yum update异常中断问题2

博客迁移到CentOS8,升级PHP到7.4

1、httpd配置
httpd -t报错
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd.conf:360
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.210.231.236. Set the 'ServerName' directive globally to suppress this message
Syntax OK

说明:
NameVirtualHost 这个已经废弃了,将其去掉就行了
第二个放着没问题

2、访问站点提示:此站点遇到了致命错误
需要打开WP_DEBUG为true,报错
Deprecated: load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available. in /home/live-in.org/wp-includes/functions.php on line 5155
试试安装php7.4

3、安装php7.4
安装最新epel
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

安装remi源
yum -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm

列表查看php
dnf module list php

安装工具包
dnf install dnf-utils

安装php7.4
yum search php74*
yum install php74-php php74-php-bcmath php74-php-cli php74-php-common php74-php-devel php74-php-gd php74-php-mbstring php74-php-mysqlnd php74-php-pdo php74-php-pear php74-php-process php74-php-xml php74-php-xmlrpc

4、安装完php,发现页面可以打开但是functions.php错误提示还有,好像没关系,于是把WP_DEBUG恢复为false

参考资料:
https://www.cnblogs.com/alliancehacker/p/12255445.html