今天在Java里配置Tomcat服务器,启动时出现如下图报错信息

java启动server时报端口无效解决方法

 

 

The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports.

无法启动服务器,因为一个或多个端口无效。打开服务器编辑器并更正无效端口。

 

很明显是配置的端口是无效端口,改下端口配置就行了,步骤如下:

 

1.打开server窗口

java启动server时报端口无效解决方法

 

 java启动server时报端口无效解决方法

 

 2.双击服务器,打开配置界面,服务器端口号设置如下:

java启动server时报端口无效解决方法

 

 再运行,就能正常启动了。

 

 

初入职场热爱分享的打工人一枚,请大家多多指教,么么哒~

相关文章:

  • 2022-12-23
  • 2021-08-11
  • 2022-01-08
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-11-16
猜你喜欢
  • 2021-08-14
  • 2021-10-17
  • 2022-12-23
  • 2021-12-14
  • 2021-06-24
  • 2022-01-07
相关资源
相似解决方案