大本赢彩票开户

码迷,xscp18.com
大本赢彩票开户 > 数据库 > 详细

mysqld服务启动失败, Failed to restart mysqld.service: Unit not found.

时间:2017-05-30 19:27:16      阅读:47780      评论:0      收藏:0      [点我收藏+]

标签:code   启动失败   shu   bash   service   ons   agent   redirect   logs   

-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 --list

Note: This output shows SysV services only and does not include native
      systemd services。 SysV configuration data might be overridden by native
      systemd 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 ]

mysqld服务启动失败, Failed to restart mysqld.service: Unit not found.

标签:code   启动失败   shu   bash   service   ons   agent   redirect   logs大本赢彩票开户   

大本赢彩票开户原文地址:http://www.cnblogs.com/FlyAway2013/p/6920972.html

(29)
(3)
   
举报
评论 一句话评论(0
登录后才能评论!
           
© 2014 xscp18.com 版权所有 京ICP备13008772号-2
迷上了代码!
中悦彩票开户 桔子彩票开户 状元彩票开户 天天彩票开户 新世佳彩票开户 速发彩票开户 乐彩客彩票开户 98彩票开户 必发彩票开户 彩牛彩票开户