mysqld服务启动失败, Failed to restart mysqld.service: Unit not found.
生活随笔
收集整理的這篇文章主要介紹了
mysqld服务启动失败, Failed to restart mysqld.service: Unit not found.
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
mysqld服務啟動失敗, 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 的服務,
-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?
可見,服務名不是mysqld 而是 mysql.server
?
于是:?
-bash-4.2# service mysql.server restart
Shutting down MySQL....[ OK ]
Starting MySQL.[ OK ]
轉載于:https://www.cnblogs.com/FlyAway2013/p/6920972.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的mysqld服务启动失败, Failed to restart mysqld.service: Unit not found.的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2.6 mailx邮件
- 下一篇: Mysql 常用函数汇总