【问题标题】:Can't make unicorn server start on CentOS boot无法让独角兽服务器在 CentOS 启动时启动
【发布时间】:2023-12-10 13:53:01
【问题描述】:

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

我添加了描述以使其与 centos 兼容。

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

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

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

【问题讨论】:

    标签: centos unicorn init init.d


    【解决方案1】:

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

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

    【讨论】:

      最近更新 更多