我刚刚在一台服务器上安装了CentOS 7.1,而且我对systemctl与服务相比的工作原理感到困惑.
在CentOS 6上,我会在运行服务时收到反馈,例如:
root@centos6 [~]# service mysql restart
Shutting down MySQL........................................[ OK ]
Starting MySQL.............................................[ OK ]
root@centos6 [~]# service mysql status
MySQL running (910285) [ OK ]
root@centos6 [~]#
但是在CentOS 7上,当我使用systemctl时,我什么都没得到.我不知道发生了什么,或者甚至发生了什么:
root@centos7 [~]# systemctl restart mysql
root@centos7 [~]# /bin/systemctl restart mysql.service
# Nothing happened
当我在CentOS 7上运行服务时,会发生这种情况:
root@centos7 [~]# service mysql restart
Redirecting to /bin/systemctl restart mysql.service
我错过了什么?