gpt4 book ai didi

在 tomcat 的 server.xml 配置 SSL 后,Eclipse 无法启动 tomcat 服务器

转载 作者:行者123 更新时间:2023-11-28 22:27:01 24 4
gpt4 key购买 nike

因为我想把tomcat从http改成https,所以我把server.xml改成这样:

<!--
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
SSLEnabled="true" maxThreads="150" scheme="https"
secure="true" clientAuth="false" connectionTimeout="20000"
keystoreFile="D:/sslDemo/tomcat.keystore"
keystorePass="123456" sslProtocol="TLS" />

改之前在Eclipse中可以启动tomcat,改之后就失败了。错误提示是这样的:

Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.

我可以通过 cmd 启动它。谁能告诉我有什么问题?非常感谢。

最佳答案

只是增加服务器启动超时enter image description here

转到服务器 View ,双击其中一个服务器,展开超时选项并为其设置值

关于在 tomcat 的 server.xml 配置 SSL 后,Eclipse 无法启动 tomcat 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40121872/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com