记一次服务器被攻击事件
由于阿里云一直提醒我服务器被攻击,部分端口被封禁等等,所以我登陆了阿里云网页端重启了一下ECS实例,结果 。。。重启之后用Xshell连接不上服务器了,几番尝试无果后找到了阿里云的售后大佬帮忙解决了,可是 MySql数据库启动不起来了 错误如下:
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
按照他给的提示尝试了systemctl status mysqld.service 结果也发现不了什么原因,于是查看了日志
cat /var/log/mysqld.log// 或者vim /var/log/mysqld.log
截图没了 只记得大概意思 创建不了 /etc/xxxxx 一个文件 从网上找了良久 还是无果 于是怀疑是服务器中毒了 干脆就把服务器重置了 但是数据库没有备份 经过多次查找教程与亲身尝试把在MySql服务启动不了的情况下成功还原了数据库。
数据库还原篇 篇幅较长 分篇食用
蓝色链接传送门: /weixin_44153063/article/details/111645183#comments_15186688