systemctl start mysql.service System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
时间: 2023-06-14 19:05:55 浏览: 158
这个错误提示是因为你的系统没有使用systemd作为init系统,所以无法使用systemctl命令来启动mysql服务。相反,你需要使用适合你的系统的init系统来启动mysql服务。例如,在使用sysvinit的系统中,你可以使用以下命令来启动mysql服务:
```
/etc/init.d/mysql start
```
如果你不确定你的系统使用的是哪个init系统,可以通过以下命令来查看:
```
ps -p 1
```
这将显示当前正在运行的init进程,从而确定你的系统使用的是哪个init系统。
相关问题
restart docker.serviceSystem has not been booted with systemd as init system (PID 1). Can't operate.
当你在使用命令"systemctl start docker"启动docker时,出现了"System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down"的错误信息。这个错误通常意味着你的系统没有使用systemd作为初始化系统。解决这个问题的方法有几种。
首先,你可以尝试使用命令"sudo service docker start"来启动服务。这个命令在某些情况下可能会解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [解决WSL中启动docker出现的System has not been booted with systemd as init system (PID 1). Can‘t ...](https://blog.csdn.net/qq_45724216/article/details/114708087)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [System has not been booted with systemd as init system (PID 1). Can‘t operate.解决方法](https://blog.csdn.net/u012833399/article/details/128533933)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
systemctl start dockerdocker报System has not been booted with systemd as init system (PID 1). Can't operate.
根据提供的引用内容,当使用`systemctl start docker`命令启动Docker时,可能会出现"System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down"的错误。
这个错误通常是因为在使用`systemctl`命令时,系统没有使用systemd作为init系统。Docker需要systemd来管理服务,因此如果系统没有使用systemd,就无法启动Docker。
解决这个问题的方法是使用其他方式来启动Docker,而不是使用`systemctl`命令。可以使用`service`命令来启动Docker,例如:
```shell
service docker start
```
这样就可以绕过"System has not been booted with systemd as init system"的错误,成功启动Docker。
阅读全文