【问题标题】:sudo systemctl start returns "Failed to wait for response: Success"sudo systemctl start 返回“等待响应失败:成功”
【发布时间】:2014-09-19 02:54:13
【问题描述】:

我正在关注this tutorial 在新服务器上安装 nginx 和 mysql。

当我运行sudo systemctl start mysqld && mysql_secure_installationsudo systemctl start nginx 时遇到问题。

使用其中任何一个,我都会收到“等待响应失败:成功”的响应。我不确定这意味着什么,但我认为这意味着出了点问题。您知道这条消息的含义以及我能做些什么吗?

【问题讨论】:

  • 我无法重现。 sudo systemctl start mysqldsudo systemctl start nginx 执行没有错误。 sudo systemctl start mysql_secure_installation 没有找到 mysql_secure_installation.service

标签: mysql linux nginx archlinux


【解决方案1】:

我遇到了与systemctl 类似的问题,其中startstop 命令总是会失败,但服务可以正确启动和停止。

您可以使用systemctl status service-name 检查服务是否有效启动和正确停止。

我还在许多其他帖子中看到提到的错误消息Failed to wait for response: Success,所以这似乎是systemctl 的问题。

将包systemd 升级到版本215-4 后问题消失了。

在我的特殊情况下,情况更糟,因为systemctl 失败阻止了软件包安装。

即包systemd依赖包udev,但是包udev无法配置,因为服务启动/停止操作会失败。

解决方案是强制安装包systemd忽略udev依赖,然后修复依赖。

# dpkg --ignore-depends=udev --install /var/cache/apt/archives/systemd_215-4_amd64.deb
# apt-get install -f

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-06
    • 2019-02-16
    • 2020-01-04
    • 2019-04-04
    相关资源
    最近更新 更多