求救!我该如何把tomcat服务关掉

pengyunchun
04-11-24 2 5811

小弟,最近打算学jsp,于是在win2k中装了jakarta-tomcat-4.1.29和
j2sdk-1_4_2-windows-i586,并在环境变量中设置好参数。很幸运在IE的http://localhost:8080中可看到默认的tomcat欢迎界面。现在我想把tomcat服务关掉,这样,在ie中就应该打不开http://localhost:8080。
于是,在win2k的命令窗口中进入tomcat/bin目录,输入shutdown命令,则出现如下错误信息:
Using CATALINA_BASE: D:\tomcat 4.1
Using CATALINA_HOME: D:\tomcat 4.1
Using CATALINA_TMPDIR: D:\tomcat 4.1\temp
Using JAVA_HOME: D:\jdk1.4
Catalina.stop: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:124)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
D:\tomcat 4.1\bin>
然后,在IE中还是可打开http://localhost:8080默认的欢迎界面。我用另外的命令行tomcat stop也关不了tomcat服务。除了重新启动系统2000外,我该如何来关掉tomcat服务呢。请各位高手,给小弟予以指点,不甚感激。

banq
2004-11-24 15:09

把tomcat的黑色窗口关了不就得了。

taikeqi
2004-11-27 17:24

到”管理工具-->服务“里把Tomcat 4.1服务停掉