docker journalctl报错的解决办法:1、打开命令窗口;2、执行“[root@377c6ef694e7 src]# chmod -R 777 /var/lib/mysql”命令即可。
本文操作环境:centos7系统、Docker 20.10.11版本、Dell G3电脑。
如何解决docker journalctl报错问题?
See “systemctl status mysqld.service“ and “journalctl -xe“ for details.
情景:
docker容器: 启动mysql
系统: centos
问题:
[root@377c6ef694e7 src]# systemctl start mysqld Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details. [root@377c6ef694e7 src]# journalctl -xe
解决:
[root@377c6ef694e7 src]# chmod -R 777 /var/lib/mysql # 添加权限即可.
推荐学习:《docker教程》
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
喜欢就支持一下吧
相关推荐