The Name of Service dbus in CentOS/RHEL
中文版附在英文版后面。
You can just ignore the chinese characters because the Chinese version and the English version say exactly the same thing.
The name of dbus service in CentOS6/RHEL6 is messagebus. So you should type the commands below to operate dbus in RHEL6.
1 | service messagebus status |
If you still use dbus, you will get an error message: ‘dbus: unrecognized service’.
I do not know if it works in RHEL7 or RHEL5. Anyway, if you cannot find dbus in your service list, you can try messagebus instead.
中文版还有必要写吗…… 我久经辗转才发现 CentOS6 下面 dbus 服务的名字叫 messagebus,差点把我搞疯。我用“rhel dbus”作为关键词,在网络上没有搜到文章介绍这一点,所以决定自己写个英文版。
如果你在 CentOS6/RHEL6 下面运行 “service dbus” 系列命令,会收到一条错误信息:“dbus: 未被识别的服务”。如果你想操作 dbus 服务,需要使用 “service messagebus” 系列命令。