进入conf找到server.xml
修改配置:
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
修改后如下:
<Connector protocol="org.apache.coyote.http11.Http11NioProtocol"
port="9443" minSpareThreads="5" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="D:/Apache/tomcatHTTPS2/server.keystore"
keystorePass="changit"/>
然后启动tomcat,访问https://localhost:9443/
即可