如何启动一个tomcat [英] how to start a tomcat

查看:116
本文介绍了如何启动一个tomcat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hiii



我是推动java并尝试创建servlets的新手。我已经在Windows 7(64位)和jre6上下载了TOMCAT 7.0.34。 />


问题是我正在处理命令promt ----我创建了JAVA环境变量(JAVA_HOME)并在cmd promt中提到过这样:



C:\>设置JAVA_HOME



之后 c:\Program Files \ _java \ jre6出现在下一行。

然后我在命令promt上写了下一个代码:

h:\> cd\my project \ apache-tomcat-7.0.34\bin

。然后输入代码下一行是

H:\ my project \ apache-tomcat-7.0.34\bin>

为了启动tomcat我是写在cmd pmt是

H:\ my project \ apache-tomcat-7.0.34\bin>启动 但它无法正常工作



现在想要启动tomcat我正在编写命令 启动启动但它无法正常工作。



任何人都可以建议我如何在Windows 7(64)上启动tomcat 7.0.34 bit)??

Hiii

I am new to advance java and trying to create servlets.I have downloaded TOMCAT 7.0.34 on windows 7(64bit) and jre6.

The problem is when i am working on command promt---- i have created JAVA environment variable(JAVA_HOME) and mentioned it on cmd promt like this:

C:\>set JAVA_HOME .

After this "c:\Program Files\java\jre6" comes itself in next line.
Then i have written next code on command promt is :
h:\>cd\my project\apache-tomcat-7.0.34\bin
.Then the code in next line is
H:\my project\apache-tomcat-7.0.34\bin>
For starting tomcat i am writing on cmd pmt is
H:\my project\apache-tomcat-7.0.34\bin> startup but it is not working

NOW want to start tomcat for which i am writing command startup for starting but it is not working.

Can anyone please suggest me how to start tomcat 7.0.34 on windows 7(64 bit)??

推荐答案





您应该在服务的控制台中提供与您的apache / tomcat安装相关的服务。

您必须查看该服务的名称,以及是否要从命令启动它行,语法是:



Hi,

You should have a service in the service''s console related to your apache/tomcat installation.
You have to see what is the name of the service, and if you want to launch it from command line, the syntax is :

net start tomcat





(这里我假设服务的名称是''tomcat'',但它可以是不同的;你必须先检查它。)



希望这会有所帮助。



(Here I assume the name of the service is ''tomcat'', but it can be different ; you have to check it first).

Hope this helps.


你会尝试但我已经注意到Tomcat的bin子目录只有.sh文件用于unix但我是usi一个窗口,所以我需要.bat文件,但bin目录没有这些文件。这是一个问题与否。



请解释
ya i will try it but i have noted one more thing that "bin" sub directory of Tomcat have only .sh files which is used for unix but i am using a window so i need .bat files but bin directory dont have these files.Is this a problem or not .

Pls explain


这篇关于如何启动一个tomcat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆