启动Tomcat:文件名、目录名或卷标语法不正确。按Enter或Esc键退出。

huangapple go评论132阅读模式
英文:

Startup Tomcat: The filename, directory name, or volume label syntax is incorrect. Press Enter or Esc to exit

问题

已安装Tomcat 8(请忽略图片上的10.1.7,因为它与Java 8不兼容)为Windows服务到我的机器上,启动时会创建一个新的控制台,显示以下消息:

文件名、目录名或卷标语法不正确。按Enter或Esc键退出...

并且http://localhost:8080返回ERR_CONNECTION_REFUSED

提前感谢您的帮助。

英文:

Using

I've installed Tomcat 8 (ignore the 10.1.7 that's on pic, once that's not compatible with Java 8) into my machine as Windows Service, when I startup, a new console is created with message:

启动Tomcat:文件名、目录名或卷标语法不正确。按Enter或Esc键退出。

The filename, directory name, or volume label syntax is incorrect.   Press Enter or Esc to exit... 

启动Tomcat:文件名、目录名或卷标语法不正确。按Enter或Esc键退出。
and http://localhost:8080 returns ERR_CONNECTION_REFUSED

Thanks in advance, you for your help.

Win 11, openjdk version "1.8.0_362", Tomcat 8
strong text
I was expecting http://localhost:8080 to show Tomcat webpage running local

答案1

得分: 0

Windows安装Tomcat 8为Windows服务

安装JDK 8

https://adoptium.net/temurin/releases/?version=8

  • 操作系统:Windows
  • 架构:x64
  • 包类型:JDK
  • 版本:8
  • .msi

点击 .msi

JDK安装选项:请选择

  • 设置JAVA_HOME变量
  • JavaSoft(Oracle)注册表键

安装Tomcat 8

https://tomcat.apache.org/download-80.cgi

8.5.87 -> 二进制发行版 -> 核心: -> 32位/64位Windows服务安装程序

下载exe,点击运行安装exe

选择组件,选项请全部选择

  • Tomcat -> 核心,服务启动本地
  • 开始菜单项
  • 文档
  • 管理器
  • 主机管理器
  • 示例

完成Apache Tomcat设置

  • 运行Apache Tomcat
  • 显示自述文件

然后在浏览器中打开 http://localhost:8080

您无需设置任何环境变量,只需按照上述步骤操作,一切将会完成。

英文:

Windows Install Tomcat 8 as Windows Service

Install JDK 8

https://adoptium.net/temurin/releases/?version=8

  • Operating System: Windows
  • Architecture: x64
  • Package Type: JDK
  • Version: 8
  • .msi

click .msi

JDK Insatll Options: Please select

  • Set JAVA_HOME variable
  • JavaSoft(Oracle) registry keys

Install Tomcat 8

https://tomcat.apache.org/download-80.cgi

8.5.87 -> Binary Distributions -> Core: -> 32-bit/64-bit Windows Service Installer

Download exe, Click ,run install exe

Choose Components, options please select all items

  • Tomcat -> core , Service Startup ,Native

  • Start Menu Items

  • Documentation

  • Manager

  • Host Manager

  • Examples

Completing Apache Tomcat Setup

  • Run Apache Tomcat
  • Show Readme

Then open your browser http://localhost:8080

You don't need to set any environment variables, just follow the above steps and everything will be done.

huangapple
  • 本文由 发表于 2023年3月7日 22:48:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/75663481.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定