mysqld服务启动失败, Failed to restart mysqld.service: Unit not found.
生活随笔
收集整理的這篇文章主要介紹了
mysqld服务启动失败, Failed to restart mysqld.service: Unit not found.
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
mysqld服務(wù)啟動(dòng)失敗, Failed to restart mysqld.service: Unit not found.
-bash-4.2# service mysqld restart
Redirecting to /bin/systemctl restart mysqld.service
Failed to restart mysqld.service: Unit not found.
?
并不存在?mysqld 的服務(wù),
-bash-4.2# -bash-4.2# chkconfig -list -list: unknown option -bash-4.2# chkconfig --listNote: This output shows SysV services only and does not include nativesystemd services. SysV configuration data might be overridden by nativesystemd configuration.If you want to list systemd services use 'systemctl list-unit-files'.To see services enabled on particular target use'systemctl list-dependencies [target]'.aegis 0:off 1:off 2:on 3:on 4:on 5:on 6:off agentwatch 0:off 1:off 2:on 3:on 4:on 5:on 6:off iprdump 0:off 1:off 2:on 3:on 4:on 5:on 6:off iprinit 0:off 1:off 2:on 3:on 4:on 5:on 6:off iprupdate 0:off 1:off 2:on 3:on 4:on 5:on 6:off jexec 0:off 1:on 2:on 3:on 4:on 5:on 6:off mysql.server 0:off 1:off 2:on 3:on 4:on 5:on 6:off netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off?
可見,服務(wù)名不是mysqld 而是 mysql.server
?
于是:?
-bash-4.2# service mysql.server restart
Shutting down MySQL....[ OK ]
Starting MySQL.[ OK ]
轉(zhuǎn)載于:https://www.cnblogs.com/FlyAway2013/p/6920972.html
與50位技術(shù)專家面對(duì)面20年技術(shù)見證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的mysqld服务启动失败, Failed to restart mysqld.service: Unit not found.的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 2.6 mailx邮件
- 下一篇: Mysql 常用函数汇总