一尘不染

无法从其他系统访问作为Windows服务的Tomcat 7

tomcat

我已经为32位Windows 7计算机下载了Tomcat 7 zip。我已经解压缩了软件包,并使用.. \ bin \
service.bat创建了Windows服务。但是,当我从Windows
services.msc启动服务时,无法从其他系统通过Web应用程序访问。可以从本地主机访问它。

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

我已经在tomcat的.. \ conf \ server.xml中添加了地址=“
0.0.0.0”。但是问题仍然存在。也尝试在防火墙中添加例外。但是没有运气。

操作系统: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

阅读 255

收藏
2020-06-16

共1个答案

一尘不染

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
2020-06-16