systemctl start mariadb.service //然后发现下面的问题
job for mariadb.service failed because the control process exited with error code .
See "systemctl status mariadb.service" and "journalctl -xe" for details
于与查询下mysql日志,找到对应问题解决。
/var/log/mariadb/mariadb.log
SSH连接设置。这里我为了方便,只使用了密钥认证。于是把其他的都注释了。
vim /etc/ssh/sshd_config
基本参数: PermitRootLogin yes
#允许root认证登录
PasswordAuthentication yes
#允许密码认证 RSAAuthentication yes
#秘钥认证PubkeyAuthentication yes
本文介绍了在遇到MariaDB服务启动失败时的排查步骤。通过查看系统日志和服务状态,定位到具体错误,并提供了SSH配置调整的方法,以确保可以通过密钥认证进行安全连接。
1390

被折叠的 条评论
为什么被折叠?



