{"title":"Tomcat 8.5 +\u5b89\u88c5\u6559\u7a0b","content":"<h2 style=\"text-align: start;\">\u51c6\u5907\u5de5\u4f5c<\/h2><ul><li style=\"text-align: start;\">Tomcat \u7248\u672c \u5927\u4e8e 8.5<\/li><li style=\"text-align: start;\">SSL \u8bc1\u4e66\u6587\u4ef6<\/li><\/ul><h2 style=\"text-align: start;\">\u5b89\u88c5\u6b65\u9aa4<\/h2><ol><li style=\"text-align: start;\">\u8fdb\u5165 Tomcat \u5b89\u88c5\u76ee\u5f55\uff0c\u628a\u8bc1\u4e66\u7684 jks \u683c\u5f0f\u6587\u4ef6\u653e\u5728 tomcat \u5b89\u88c5\u76ee\u5f55\u3002<\/li><\/ol><pre><code >conf\/ssl\/yourdomain.com.jks<\/code><\/pre><p style=\"text-align: start;\">2.\u6253\u5f00 tomcat \u914d\u7f6e\u6587\u4ef6 conf\/server.xml<\/p><ul><li style=\"text-align: start;\">tomcat \u9ed8\u8ba4\u4e00\u822c\u662f 8080 \u7aef\u53e3\u6216\u8005 80 \u7aef\u53e3\uff0c\u5148\u627e\u5230\u8fd9\u4e00\u6bb5\u3002<\/li><\/ul><pre><code >&lt;Connector port=\"8080\" protocol=\"HTTP\/1.1\"\r\n connectionTimeout=\"20000\"\r\n redirectPort=\"8443\" \/&gt;<\/code><\/pre><p><br><\/p><ul><li style=\"text-align: start;\">\u4fee\u6539 server.xml \u914d\u7f6e\u6587\u4ef6\uff0c\u5728\u8fd9\u6bb5\u4e0b\u9762\u63d2\u5165\u4e0b\u9762\u914d\u7f6e\u3002<\/li><\/ul><pre><code >&lt;Connector port=\"443\"\r\n protocol=\"org.apache.coyote.http11.Http11Nio2Protocol\"\r\n maxThreads=\"150\"\r\n SSLEnabled=\"true\"\r\n defaultSSLHostConfigName=\"yourdomain.com\"&gt;\r\n &lt;SSLHostConfig hostName=\"yourdomain.com\"&gt;\r\n     &lt;Certificate certificateKeystoreFile=\"conf\/ssl\/yourdomain.com.jks\"\r\n         certificateKeystorePassword=\"\u5bc6\u7801\"\r\n         type=\"RSA\" \/&gt;\r\n &lt;\/SSLHostConfig&gt;\r\n&lt;\/Connector&gt;<\/code><\/pre><p><span style=\"color: rgb(0, 0, 0); font-size: 16px;\">protocol \u53ef\u9009: org.apache.coyote.http11.Http11NioProtocol - non blocking Java NIO connector org.apache.coyote.http11.Http11Nio2Protocol - non blocking Java NIO2 connector org.apache.coyote.http11.Http11AprProtocol - the APR\/native connector.<\/span><\/p><p><br><\/p><ol><li style=\"text-align: start;\">\u91cd\u542f\u670d\u52a1<\/li><\/ol><h2 style=\"text-align: start;\">\u9a8c\u8bc1\u914d\u7f6e<\/h2><ul><li style=\"text-align: start;\">\u4f7f\u7528 HTTPS \u8bbf\u95ee<\/li><\/ul><h2 style=\"text-align: start;\">\u5e38\u89c1\u95ee\u9898<\/h2><ol><li style=\"text-align: start;\">\u8fde\u63a5\u95ee\u9898\u68c0\u67e5\u7aef\u53e3\u914d\u7f6e\u9a8c\u8bc1\u9632\u706b\u5899\u8bbe\u7f6e\u786e\u8ba4\u670d\u52a1\u72b6\u6001<\/li><li style=\"text-align: start;\">SSL \u95ee\u9898\u68c0\u67e5\u8bc1\u4e66\u914d\u7f6e\u9a8c\u8bc1\u5bc6\u94a5\u5e93\u8bbe\u7f6e\u786e\u8ba4 SSL \u534f\u8bae\u7248\u672c<\/li><\/ol><p><br><\/p><p><br><\/p>","updated_at":"2026-07-22 12:32:22"}