Tomcat问题:503服务暂时不可用
抱歉,如果重新发布,
我是 JSP 新手。我正在遵循一本书中的教程,但我在示例 Web 应用程序的第一步中遇到了问题。
我已经安装了 Tomcat 6.0,这是它的完整路径:
C:\Program Files\Apache Software Foundation\Tomcat 6.0
书上说要启动Tomcat,我必须cd到Tomcat主目录并运行bin/startup.sh,但是由于没有任何startup.sh文件进入bin 文件夹,我是 bin/tomcat6.exe。
我不知道这是否正确,但 Tomcat 似乎可以正确启动。
但问题是:我创建了一个文件夹(名为 Beer-v1),里面有一个 HTML 表单(form.html),并将所有内容放入已经存在的文件夹 webapps 中。
这是 html 文件的完整路径:
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\Beer-v1\form.html
所以我在浏览器中输入: http://localhost:8080/Beer-v1/form.html< /a> ,但显示的是“503服务暂时不可用”页面,而不是form.html。
我做错了什么?
请帮忙。
提前致谢。
Sorry if repost
I’m new to JSP. I’m following a tutorial from a book, but I’m facing a problem in one of the first steps of the example web app.
I’ve installed the Tomcat 6.0, and this is it’s full path:
C:\Program Files\Apache Software Foundation\Tomcat 6.0
The book says that to start Tomcat, I must cd into the Tomcat home directory and run bin/startup.sh, but since there is not any startup.sh file into bin folder, I do bin/tomcat6.exe.
I don’t know If that is right, but Tomcat seems to start correctly that way.
But here is the problem : I created a folder (named Beer-v1) with an HTML form inside (form.html), and I placed everything into the already existing folder webapps.
This is the full path of the html file:
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\Beer-v1\form.html
So I type in my browser: http://localhost:8080/Beer-v1/form.html , but the page “503 Service Temporarily Unavailable” is displayed, and not the form.html.
What am I doing wrong?.
Please help.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您没有用于 Windows 的
TOMCAT_HOME/bin/startup.bat
,而不是用于 Unix/Linux 的startup.sh
,但有tomcat6。 exe
和tomcat6w.exe
,那么您可能已经通过安装程序安装了 Tomcat。您需要做的是在系统托盘上找到tomcat徽标,右键单击它并启动它。
或者,运行
Services.msc
(从 WindowsRun
)并启动Apache Tomcat 6
服务。If you don't have
TOMCAT_HOME/bin/startup.bat
which should be used for Windows instead ofstartup.sh
for Unix/Linux, but havetomcat6.exe
andtomcat6w.exe
, then you've probably installed Tomcat through an installer.What you need to do, is on the system tray, find the tomcat logo, right-click on it and start it.
Alternatively, run
Services.msc
(from windowsRun
) and startApache Tomcat 6
service.