gpt4 book ai didi

mysql - 升级 Openssl 修复 Heartbleed 但导致 Magento MySQL 错误

转载 作者:行者123 更新时间:2023-11-29 08:04:09 25 4
gpt4 key购买 nike

在我们的 Ubuntu 12.04 服务器上更新和升级 Heartbleed 错误后,我遇到了仅在我们的 Magento 托管站点的登陆页面上显示的 MySQL 错误:

SQLSTATE[HY000]: General error: 23 Out of resources when opening file '/tmp/#sql_360_0.MYD' (Errcode: 24)

在开始之前,我们备份了所有内容。然后我执行了以下命令:

sudo apt-get clean
sudo apt-get update
sudo apt-get install openssl libssl1.0.0
reboot

根据https://filippo.io/Heartbleed/ ,openssl 已成功修补。现在,所有 Magento 1.8 站点都因相同的错误(如上)而损坏,但 Joomla 站点似乎不受影响。所有站点都使用 MySQL 5.5.35。

为了查看是否是依赖版本问题,我还尝试了以下命令,但没有结果:

sudo apt-get upgrade
reboot

我还清除了 Magento 缓存和 session 文件夹。

最佳答案

根据一些有限的互联网研究,听起来像

General error: 23 Out of resources when opening file

这是 MySQL 的说法

I need to open more files than the operating system will allow.

因此,OpenSLL 更新或自上次重新启动服务器(或重新启动 MySQL?)以来发生的其他事情限制了允许应用程序打开的文件数量。

基于一些old blog posts ,听起来您需要编辑

中允许的文件数量
/etc/security/limits.conf

寻找线条

and add:
mysql soft nofile ....
mysql hard nofile ....

其中 .... 是当前允许您打开的文件数。听起来您可能还想在 MySQL 服务器上刷新表,以清除 MySQL 为 MyISAM 分区表打开的任何旧文件。

关于mysql - 升级 Openssl 修复 Heartbleed 但导致 Magento MySQL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23067635/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com