You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 20.04环境下MySQL 8双进程冲突致加载停滞的问题求助

Ubuntu 20.04环境下MySQL 8双进程冲突致加载停滞的问题求助

各位大佬,这个问题已经折腾我整整两周了,实在找不到头绪,来求大家帮忙看看!

之前我们的Ubuntu 20.04服务器一直稳得一批,完全没出过问题,直到某天UpTime Robot突然给我发来了500错误的监控警报。

我排查的时候运行sudo aa-status,结果显示有2个相关进程在运行:

2 processes have profiles defined.
2 processes are in enforce mode.

目前我只能靠临时办法救急:执行service mysql stop && pkill -f mysql杀掉所有MySQL进程,然后重启MySQL,这时候服务器就能恢复正常。但麻烦的是,要么我一执行apt-get upgrade就会再次触发这个问题,要么就是过个几天,故障又会重现——还是显示有2个MySQL进程在运行,相当于MySQL试图启动两个实例导致冲突卡死。

下面是我执行apt-get upgrade时的部分日志片段:

Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real ...
snapd.failure.service is a disabled or a static unit not running, not starting it.
snapd.snap-repair.service is a disabled or a static unit not running, not starting it.
Failed to restart snapd.mounts-pre.target: Operation refused, unit snapd.mounts-pre.target ...

备注:内容来源于stack exchange,提问作者Kristin Markell

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 13:08:16