Tomcat 7 作为 Windows 服务无法从其他系统访问 [英] Tomcat 7 as windows service not accessible from other systems

查看:20
本文介绍了Tomcat 7 作为 Windows 服务无法从其他系统访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为 32 位 Windows 7 机器下载了 Tomcat 7 zip.我已解压缩包并使用 ..\bin\service.bat 创建了 Windows 服务.但是当我从 windows services.msc 启动服务时,我无法通过其他系统的 web 应用程序访问.可以从localhost访问.

I have downloaded Tomcat 7 zip for 32 bit windows 7 machine. I have unzipped the package and created the windows service using ..\bin\service.bat. But when i start the service from windows services.msc, i could NOT access by web application from other systems. It can be accessed from localhost.

但是当我使用 ..\bin\startup.bat 从命令行启动 tomcat 时,我可以从其他系统访问我的 Web 应用程序.

But when i start the tomcat from command line using ..\bin\startup.bat i CAN access my web application from other systems.

我在 tomcat 的 ..\conf\server.xml 中添加了 address="0.0.0.0".但问题仍然存在.也尝试在防火墙中添加例外.但没有运气.

I have added address="0.0.0.0" in ..\conf\server.xml of tomcat. But still the problem exists. Tried with adding exception in firewall too. But no luck.

操作系统:Windows 7 专业版

OS: Windows 7 Professional

有什么想法吗??

Solution:

Add the ..\bin\tomcat7.exe to the Windows exception list. Everything works fine.
1. To to Windows Start --> Control Panel
2. Open windows firewall
3. Click on "Allow a program or feature through windows firewall" in the left menu
4. Add tomcat7.exe to the exception list and click ok.
5. Restart tomcat and now you can access tomcat from other machines

推荐答案

Solution:

Add the ..\bin\tomcat7.exe to the Windows exception list. Everything works fine.
1. Go to Windows Start --> Control Panel
2. Open windows firewall
3. Click on "Allow a program or feature through windows firewall" in the left menu
4. Add tomcat7.exe to the exception list and click ok.
5. Restart tomcat and now you can access tomcat from other machines

这篇关于Tomcat 7 作为 Windows 服务无法从其他系统访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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