早上收到预警,mysql 发生了自动重启,查看mysql.log并没有发现异常,于是查看了一下/var/log/syslog,发现了以下日志
将自动更新服务停止
sudo apt-get remove unattended-upgrades sudo systemctl stop apt-daily.timer sudo systemctl disable apt-daily.timer systemctl stop apt-daily.service sudo systemctl disable apt-daily.service sudo systemctl daemon-reload systemctl mask apt-daily.service
查看服务状态
systemctl status apt-daily.timer ○ apt-daily.timer - Daily apt download activities Loaded: loaded (/lib/systemd/system/apt-daily.timer; disabled; vendor preset: enabled) Active: inactive (dead) since Wed 2022-10-26 09:20:01 CST; 1min 5s ago Trigger: n/a Triggers: ● apt-daily.service Sep 20 16:48:08 iZbp1e48ddp9r5l5vhrgxuZ systemd[1]: Started Daily apt download activities. Oct 26 09:20:01 iZbp1e48ddp9r5l5vhrgxuZ systemd[1]: apt-daily.timer: Deactivated successfully. Oct 26 09:20:01 iZbp1e48ddp9r5l5vhrgxuZ systemd[1]: Stopped Daily apt download activities.
标签:activities,upgrade,sudo,timer,apt,systemctl,daily From: https://www.cnblogs.com/rtnb/p/16827257.html