由于我想将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启动它。 有人可以建议问题是什么?非常感谢。