gpt4 book ai didi

mysql - Gentoo 服务启动时间过长,init 系统放弃

转载 作者:行者123 更新时间:2023-11-30 23:03:13 28 4
gpt4 key购买 nike

在我的 gentoo 系统中的某些时候,mysqld 守护进程会花费太多时间来启动。当系统启动时,gentoo 超时并认为守护进程尚未启动,但它最终在后台启动。但是gentoo还是认为没有启动。在这种情况下可以做什么?

最佳答案

查看 /etc/conf.d/mysql 中的以下值:

# This setting (in seconds) should be high enough to allow InnoDB to do a full
# checkpoint recovery. 900 is the default used in the upstream RPM startup
# scripts. 30 seconds should be sufficent if you just have a tiny <1GiB
# database. After the core startup is done, we wait this long for the UNIX
# socket to appear.
STARTUP_TIMEOUT="900"

# This is how long, in milliseconds, we wait for pidfile to be created, early
# in the startup.
STARTUP_EARLY_TIMEOUT="1000"

关于mysql - Gentoo 服务启动时间过长,init 系统放弃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23007442/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com