1、解决openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory错误
问题:在Centos7上编译安装openssl后,运行openssl version
出现如下错误:
openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
这是由于openssl库的位置不正确造成的。
解决方法:
首先执行
find / -name libssl.so.1.1
找到libssl.so.1.1文件后在root用户下进行软链接,示例如下:
ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1 ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
类似问题:解决:error while loading shared libraries: libcrypto.so.10: cannot open shared object file: Permission https://blog.csdn.net/qq_40142345/article/details/103576927
2、nginx转发 426 upgrade required 问题
解决方法:
nginx配置location里面增加proxy_http_version 1.1
3、Centos 7 异常断电启动错误:Internal error xfs XFS_WANT_CORRUPTED_GOTO
如果出现以下报错
[sda] Assuming drive cache: write through Internal error xfs XFS_WANT_CORRUPTED_GOTO at line 1662 of file fs/xfs/libxfs/xfs_alloc.c Caller xfs_free_extent+0x130 [xfs] Internal error xfs_trans_cancel at line 990 of file fs/xfs/xfs_trans.c.Caller xlog_recover_process_efi +0x16b/0x190 [xfs] Corruption of in-memory data detected. Shutting down filesystem Please umount the filesystem and rectify the problem(s) Failed to recover EFIs Generating “/run/initramfs/rdsosreport.txt”
解决方法:
如果是LVM管理分区的
ls -l /dev/mapper xfs_repair /dev/mapper/cl-root
若提示
xfs_repair -L /dev/mapper/cl-root
最后重启
init 6
4、Centos7升级内核和服务(排除指定包)
yum -x mesos*,docker*,marathon* openjdk* java* update -y
注意:升级完内核需要重启机器才能生效。
5、关于 下载 nfs-utils时的 gssproxy conflicts with selinux-policy-3.13.1-102.el7.noarch 错误
yum install nfs-utils -y
使用上面命令时出现如下错误:
错误:gssproxy conflicts with selinux-policy-3.13.1-102.el7.noarch 您可以尝试添加 --skip-broken 选项来解决该问题 ** 发现 6 个已存在的 RPM 数据库问题, 'yum check' 输出如下: libselinux-2.5-14.1.el7.x86_64 是 libselinux-2.5-6.el7.x86_64 的副本 libselinux-utils-2.5-14.1.el7.x86_64 是 libselinux-utils-2.5-6.el7.x86_64 的副本 libsemanage-2.5-14.el7.x86_64 是 libsemanage-2.5-4.el7.x86_64 的副本 libsepol-2.5-10.el7.x86_64 是 libsepol-2.5-6.el7.x86_64 的副本 policycoreutils-2.5-29.el7_6.1.x86_64 是 policycoreutils-2.5-8.el7.x86_64 的副本 selinux-policy-3.13.1-229.el7_6.12.noarch 是 selinux-policy-3.13.1-102.el7.noarch 的副本
解决方法:
首先:
yum install yum-utils -y
然后执行命令:
package-cleanup --cleandupes -y
如果还存在如下错误:
Not removing selinux-policy-3.13.1-102.el7.noarch because it is required by 2 installed packages Not removing libselinux-2.5-6.el7.x86_64 because it is required by 1 installed package There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
再执行命令:
package-cleanup --cleandupes with --removenewestdupes -y
之后重新下载即可
yum install nfs-utils -y