在 Windows Server 2008 上安装 Tomcat 7 作为服务 [英] Installing Tomcat 7 as Service on Windows Server 2008
问题描述
我想将我的 tomcat v7.0.12 作为服务安装在我的 Windows 2008 Server 上.在 tomcat 页面上,我找到了本教程.但是我的安装目录中没有 service.bat
文件.
I want to install my tomcat v7.0.12 as a service on my Windows 2008 Server.
On the tomcat page I found this tutorial. But there isn't a service.bat
file in my installation dir.
在 WS2008 的服务概述中,不可能轻松创建像 new->service ...
In the service overview of WS2008 it isn't possible easily create a new service like new->service ...
推荐答案
启动Tomcat7服务:
To Start Tomcat7 Service :
打开cmd,进入Apache Tomcat 7"文件夹中的bin目录.你会看到一些类似
C:\..\bin>
输入以上命令启动服务:C:\..\bin>service.bat install
.该服务将立即启动.
Enter above command to start the service: C:\..\bin>service.bat install
. The service will get started now.
输入以上命令启动tomcat7w监控服务.如果您在启动 tomcat7 服务时遇到问题,请使用以下命令删除该服务:C:\..\bin>tomcat7//DS//Tomcat7
Enter above command to start tomcat7w monitory service. If you have issue with starting the tomcat7 service then remove the service with command : C:\..\bin>tomcat7 //DS//Tomcat7
现在该服务将不复存在.再次尝试安装命令,现在服务将被安装并启动:C:\..\bin>tomcat7w \\MS\tomcat7w
Now the service will no longer exist. Try the install command again, now the service will get installed and started: C:\..\bin>tomcat7w \\MS\tomcat7w
您将在系统托盘中看到 tomcat 7 图标.现在,tomcat7 服务和 tomcat7w 将在 windows 启动时自动启动.
You will see the tomcat 7 icon in the system tray. Now, the tomcat7 service and tomcat7w will start automatically when the windows get start.
这篇关于在 Windows Server 2008 上安装 Tomcat 7 作为服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!