| 今天在对glibc降级时出现了问题,降级过程是先删除原来的glibc,在安装新(比原来的版本低)的glibc,但删除glibc后出大问题了....如下图 |
| /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory |

| 原因是ld-linux-x86-64.so.2是操作系统的核心,并不受LD_LIBRARY_PATH环境变量的影响。如果想改变其调用方式需查看man文档。可能是这个文档太老了,在服务器上怎么man都没有,只有网上有:http://www.man7.org/linux/man-pages/man8/ld.so.8.html |
| |
| 解决如下: |





| 使用linux救援模式进入系统。原系统被挂载到 /mnt/sysimage/目录下,拷贝需要文件到挂载的对应目录里面,然后重启系统恢复正常。 |
| 拷贝需要文件: |
| cp -rf /lib64/* /mnt/sysimage/lib64/ |
| reboot 或者 exit |
MySQL5.7 报错 Lost connection to MySQL server during query
| root@db-01:~# vim /etc/my.cnf |
| #该值设置过小将导致单个记录超过限制后写入数据库失败,且后续记录写入也将失败 |
| #max_allowed_packet = 128M |
| max_allowed_packet = 1024M # 调整后的值 |
| |
| |
| # 重启MySQL |
| root@db-01:~# /etc/init.d/mysql restart |
| Restarting mysql (via systemctl): mysql.service |
ssh时报 Unable to negotiate with 172.xx.xx.62 port 22: no matching cipher found. Their offer: 3des-cbc
| 出现这样的错误并不是账号、密码、地址错误,纯粹时用了ssh的加密算法而已 |
| 解决: |
| 先登录到该机器:ssh -c 3des-cbc@172.xx.xx.62 |
| 然后讲ssh的加密算法注释 |
| vim /etc/ssh/sshd_config |
| #Ciphers 3des-cbc |
| #MACs hmac-sha1,hmac-md5 |
| |
| 重启ssh让其生效 |
| systemctl restart sshd |
message中报 mariadb-5.5.52-1.el7.x86_64 has missing requires of mariadb-libs(x86-64)
| CentOS7.6 |
| |
| 解决: |
| wget http://mirror.centos.org/centos/7/os/x86_64/Packages/mariadb-libs-5.5.68-1.el7.x86_64.rpm |
| yum -y install mariadb-libs-5.5.68-1.el7.x86_64.rpm |
| ldconfig -v|grep libmysqlclient.so |
-bash: warning: setlocale: LC_CTYPE: cannot change locale (zh_CN.UTF-8)
| [root@foundation0 ~]# ssh student@wor-bash: warning: setlocale: LC_CTYPE: cannot change locale (zh_CN.UTF-8) |
| -bash: warning: setlocale: LC_CTYPE: cannot change locale (zh_CN.UTF-8) |
| kstation |
| |
| # 解决 |
| ~]# echo 'export LC_ALL=C' >> /etc/profile |
| # 测试登录 |
| [root@foundation0 ~]# ssh student@workstation |
| Last login: Sun Sep 4 17:50:42 2022 from 172.25.250.250 |
| [student@workstation ~]$ |
Host key verification failed.(在Mint21上执行的报错)
| # 更新于2024年9月9日 |
| rambo@p360:~/下载$ sudo scp igb-5.7.2.tar.gz rambo@172.16.186.144:~ |
| @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
| @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ |
| @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
| IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! |
| Someone could be eavesdropping on you right now (man-in-the-middle attack)! |
| It is also possible that a host key has just been changed. |
| The fingerprint for the ED25519 key sent by the remote host is |
| SHA256:oKyemzoRwYeAhq14EP01sAbx2nAlnVQ4+9D32XV29f4. |
| Please contact your system administrator. |
| Add correct host key in /root/.ssh/known_hosts to get rid of this message. |
| Offending ECDSA key in /root/.ssh/known_hosts:40 |
| remove with: |
| ssh-keygen -f "/root/.ssh/known_hosts" -R "172.16.186.144" |
| Host key for 172.16.186.144 has changed and you have requested strict checking. |
| Host key verification failed. |
| lost connection |
| |
| |
| # 按提示执行 |
| rambo@p360:~/下载$ sudo ssh-keygen -f "/root/.ssh/known_hosts" -R "172.16.186.144" |
| # Host 172.16.186.144 found: line 38 |
| # Host 172.16.186.144 found: line 39 |
| # Host 172.16.186.144 found: line 40 |
| /root/.ssh/known_hosts updated. |
| Original contents retained as /root/.ssh/known_hosts.old |
| |
| # 再来发送 |
| rambo@p360:~/下载$ sudo scp igb-5.7.2.tar.gz rambo@172.16.186.144:~ |
| The authenticity of host '172.16.186.144 (172.16.186.144)' can't be established. |
| ED25519 key fingerprint is SHA256:oKyemzoRwYeAhq14EP01sAbx2nAlnVQ4+9D32XV29f4. |
| This key is not known by any other names |
| Are you sure you want to continue connecting (yes/no/[fingerprint])? yes |
| Warning: Permanently added '172.16.186.144' (ED25519) to the list of known hosts. |
| rambo@172.16.186.144's password: |
| igb-5.7.2.tar.gz |
| |
| |
欢迎加入QQ群一起讨论Linux、开源等技术

【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 上周热点回顾(3.3-3.9)
· AI 智能体引爆开源社区「GitHub 热点速览」