如题,服务器报错:
查看日志:
发现问题:
Starting Daily apt upgrade and clean activities...
这个 apt upgrade 不是普通的update, upgrade 会直接引起系统的不稳定, 相关进程或者服务重启。
解决:
sudo apt-get remove unattended-upgrades (选择y)
sudo su , 然后复制粘贴:
systemctl kill --kill-who=all apt-daily.service
systemctl stop apt-daily.timer
systemctl disable apt-daily.timer
systemctl stop apt-daily.service
systemctl disable apt-daily.service
systemctl mask apt-daily.service
systemctl daemon-reload
验证:
systemctl status apt-daily.timer
注意结果中的:
Active: inactive (dead)
参考文献:
http://www.siwei.me/blog/posts/ubuntu-mysql
https://www.gongzi.org/disable-daily.html
=================================================