{"id":16394,"date":"2022-10-11T17:11:42","date_gmt":"2022-10-11T09:11:42","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=16394"},"modified":"2022-10-11T17:11:53","modified_gmt":"2022-10-11T09:11:53","slug":"ubuntu-apache2-tomcat6","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ubuntu-apache2-tomcat6.html","title":{"rendered":"ubuntu 11.10 \u5b89\u88c5apache2 tomcat6"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nTomcat\u662fApache \u8f6f\u4ef6\u57fa\u91d1\u4f1a\uff08Apache Software Foundation\uff09\u7684Jakarta \u9879\u76ee\u4e2d\u7684\u4e00\u4e2a\u6838\u5fc3\u9879\u76ee\uff0c\u7531Apache\u3001Sun \u548c\u5176\u4ed6\u4e00\u4e9b\u516c\u53f8\u53ca\u4e2a\u4eba\u5171\u540c\u5f00\u53d1\u800c\u6210\u3002\u7531\u4e8e\u6709\u4e86Sun \u7684\u53c2\u4e0e\u548c\u652f\u6301\uff0c\u6700\u65b0\u7684Servlet \u548cJSP \u89c4\u8303\u603b\u662f\u80fd\u5728Tomcat \u4e2d\u5f97\u5230\u4f53\u73b0\uff0cTomcat 5\u652f\u6301\u6700\u65b0\u7684Servlet 2.4 \u548cJSP 2.0 \u89c4\u8303\u3002\u56e0\u4e3aTomcat \u6280\u672f\u5148\u8fdb\u3001\u6027\u80fd\u7a33\u5b9a\uff0c\u800c\u4e14\u514d\u8d39\uff0c\u56e0\u800c\u6df1\u53d7Java \u7231\u597d\u8005\u7684\u559c\u7231\u5e76\u5f97\u5230\u4e86\u90e8\u5206\u8f6f\u4ef6\u5f00\u53d1\u5546\u7684\u8ba4\u53ef\uff0c\u6210\u4e3a\u76ee\u524d\u6bd4\u8f83\u6d41\u884c\u7684Web \u5e94\u7528\u670d\u52a1\u5668\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u4e00\u3001\u5b89\u88c5apache2<\/strong><\/span><\/div>\n
1. sudo apt-get install apache2\r\n<\/pre>\n

\u542f\u52a8\u4e24\u4e2a\u4ee3\u7406\u6a21\u5757\uff1a<\/p>\n

1. sudo a2enmod proxy_ajp\r\n2. sudo a2enmod proxy\r\n<\/pre>\n
\u4e8c\u3001\u5b89\u88c5tomcat6<\/strong><\/span><\/div>\n
1. sudo apt-get install tomcat6\r\n<\/pre>\n
\u4e09\u3001\u5b89\u88c5sun-java6-jdk<\/strong><\/span><\/div>\n
1. sudo apt-get install python-software-properties\r\n2. sudo add-apt-repository ppa:ferramroberto\/java\r\n3. sudo apt-get update\r\n4. sudo apt-get install sun-java6-jdk\r\n<\/pre>\n
\u56db\u3001\u6574\u5408\u914d\u7f6e<\/strong><\/span><\/div>\n

1\u3001\u6253\u5f00\/etc\/apache2\/sites-enabled\/000-default,\u589e\u52a0:<\/p>\n

1. ProxyPass \/ ajp:\/\/127.0.0.1:8009\/\r\n2. ProxyPassReverse \/ ajp:\/\/127.0.0.1:8009\/\r\n<\/pre>\n

2\u3001\u6253\u5f00\/etc\/tomcat6\/server.xml\uff0c\u627e\u5230:
\n\"03\"
\n\u540e\u9762\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9:
\n\"02\"
\n3\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n

1. JAVA_HOME=\/usr\/lib\/jvm\/java-6-sun\r\n2. sudo echo \"JAVA_HOME=\/usr\/lib\/jvm\/java-6-sun\" >>\/etc\/environment\r\n3. \/etc\/environment\r\n<\/pre>\n

4\u3001\u6dfb\u52a0tomcat ajp\u652f\u6301
\n\u5728\/etc\/tomcat6\/server.xml\u4e2d\u627e\u5230\u5982\u4e0b\u4e00\u53e5\uff0c\u5e76\u5220\u9664\u6ce8\u91ca\u3002
\n\"01\"<\/p>\n

\u6d4b\u8bd5<\/strong><\/span><\/div>\n

\u53ef\u4ee5\u4e0b\u8f7djsp\u7684\u63a2\u9488\u6d4b\u8bd5\uff1a
\nhttps:\/\/www.centos.bz\/wp-content\/uploads\/2012\/11\/p.jsp.zip<\/p>\n

\n

\u539f\u6587\u5730\u5740\uff1ahttps:\/\/www.centos.bz\/2012\/11\/ubuntu-11-10-install-apache2-tomcat6-ajp\/<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1a http:\/\/lrxjmw.cn\/ubuntu-apache2-tomcat6.html \u200e
\n<\/a>\u7f16\u8f91\uff1a\u5f90\u79ef\u6167\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d\u00a0<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb Tomcat\u662fApache \u8f6f\u4ef6\u57fa\u91d1\u4f1a\uff08Apache Software Foundation\uff09\u7684Jaka […]<\/p>\n","protected":false},"author":63,"featured_media":6662,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-16394","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/16394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=16394"}],"version-history":[{"count":18,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/16394\/revisions"}],"predecessor-version":[{"id":254601,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/16394\/revisions\/254601"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/6662"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=16394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=16394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=16394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}