为什么我安装的 Tomcat 不起作用?

Why does my installation of Tomcat not work?

我在安装 Apache-Tomcat 时遇到问题。我已经下载了 Zip 文件 Picture Download Page , unpacked it and saved it, set the environmental variables JAVA-HOME (set the value to jdk) , JRE_HOME (set the value to jre) and CATALINA_Home (set to apache tomcat) but it doesn't seem to work. After starting startup.bat with cmd.exe, following occurs: Picture Startup.bat Typing localhost:8080 into the browser, following occurs: Localhost Error 404 and Localhost 500

从您截图中的错误信息来看,我认为tomcat想要创建子目录但没有所需的权限。 c:\Porgram Files\只能用管理权限写入,所以你可以测试它(但只测试它)以管理权限启动它(例如以管理权限打开cmd windows)。

如果这样可以解决问题:请不要以管理员身份 运行 tomcat。而是授予对所需文件夹的完全访问权限(我认为 tomcat 必须写入的主要是临时、工作和日志文件夹。)