Mysql sudo systemctl start returns";未能等待响应:成功“;

Mysql sudo systemctl start returns";未能等待响应:成功“;,mysql,linux,nginx,archlinux,Mysql,Linux,Nginx,Archlinux,下面我将在新服务器上安装nginx和mysql 当我运行sudo systemctl start mysqld&&mysql\u secure\u安装或sudo systemctl start nginx时,我遇到了问题 使用这两种方法中的任何一种,我都会得到响应“未能等待响应:成功”。我不确定这意味着什么,但我想这意味着出了什么问题。你知道这条消息的意思吗?我能做些什么吗?我在systemctl中遇到了类似的问题,其中start和stop命令总是失败,但服务的启动和停止都是正确的 您可以使用s

下面我将在新服务器上安装nginx和mysql

当我运行
sudo systemctl start mysqld&&mysql\u secure\u安装
sudo systemctl start nginx
时,我遇到了问题


使用这两种方法中的任何一种,我都会得到响应“未能等待响应:成功”。我不确定这意味着什么,但我想这意味着出了什么问题。你知道这条消息的意思吗?我能做些什么吗?

我在
systemctl
中遇到了类似的问题,其中
start
stop
命令总是失败,但服务的启动和停止都是正确的

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

我也在许多其他帖子中看到了提到的错误消息
未能等待响应: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

我无法复制
sudo systemctl start mysqld
sudo systemctl start nginx
执行时没有错误
sudo systemctl start mysql\u secure\u installation
未找到mysql\u secure\u installation.service