gpt4 book ai didi

centos - 无法使 unicorn 服务器在 CentOS 启动时启动

转载 作者:太空宇宙 更新时间:2023-11-03 17:22:25 29 4
gpt4 key购买 nike

我有一个 unicorn init/etc/init.d 中的脚本

我添加了说明以使其与 centos 兼容。

在chkconfig中配置: unicorn 0:off 1:off 2:on 3:on 4:on 5:on 6:off

如果我运行/etc/init.d/unicorn start它会正常启动

但是当我重新启动我的系统时,它不起作用。有什么想法吗?

最佳答案

查找 unicorn 日志文件以查看问题所在。可能在 unicorn 启动时并非 unicorn 需要的所有服务都已启动,这可以解释为什么 unicorn 在手动启动时启动,而不是在自动启动时启动。如果这是问题所在,它应该反射(reflect)在 unicorn 错误日志中。

此外,使用运行级别命令(或 who -r)检查运行级别,以确保您的系统处于您认为的运行级别。

关于centos - 无法使 unicorn 服务器在 CentOS 启动时启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17467511/

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