- Get the service name for both MySQL and Tomcat获取 MySQL 和 Tomcat 的 服务名称.
- Launch command prompt. Execute the following
在命令行中执行以下语句.
Code Block sc config Tomcat7 depend= MySQL
- You will get the following as confirmation
您将得到以下成功确认信息.
Code Block [SC] ChangeServiceConfig SUCCESS
- You may verify it on Tomcat's service properties您可以在 Tomcat 服务熟悉中验证.