{"title":"Tomcat 6\/7\/8\u5b89\u88c5\u6559\u7a0b","content":"<h2 style=\"text-align: start;\">\u51c6\u5907\u5de5\u4f5c<\/h2><ul><li style=\"text-align: start;\">Tomcat \u7248\u672c 6\/7\/8<\/li><li style=\"text-align: start;\">SSL \u8bc1\u4e66\u6587\u4ef6<\/li><\/ul><p style=\"text-align: start;\"><br><\/p><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><p 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<\/p><pre><code >&lt;Connector port=\"8080\" protocol=\"HTTP\/1.1\"\r\n connectionTimeout=\"20000\"\r\n redirectPort=\"8443\" \/&gt;<\/code><\/pre><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\" protocol=\"org.apache.coyote.http11.Http11NioProtocol\"\r\n   maxThreads=\"150\"\r\n   SSLEnabled=\"true\"\r\n   scheme=\"https\"\r\n   secure=\"true\"\r\n   sslEnabledProtocols=\"TLSv1.2,TLSv1.1,TLSv1\"\r\n   clientAuth=\"false\"\r\n   keystoreFile=\"conf\/ssl\/yourdomain.com.jks\"\r\n   keystorePass=\"\u5bc6\u7801\" \/&gt;<\/code><\/pre><ol><li style=\"text-align: start;\">Tomcat 6.0 \u4e0a\u9762\u914d\u7f6e\u5982\u679c\u65e0\u6cd5\u542f\u52a8\uff0c\u628a protocol \u4fee\u6539\u4e3a protocol=\"HTTP\/1.1\u2033 windows \u5e73\u53f0\u8fd0\u884c tomcat \uff0c bin \u76ee\u5f55\u4e0b\u5fc5\u987b\u6709 tcnative-1.dll<\/li><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>","updated_at":"2026-07-02 18:17:21"}