{"id":581,"date":"2009-03-12T09:46:05","date_gmt":"2009-03-12T01:46:05","guid":{"rendered":"http:\/\/www.liangliang.org.cn\/blog\/?p=581"},"modified":"2009-03-12T09:46:05","modified_gmt":"2009-03-12T01:46:05","slug":"debian-tomcat6%e5%ae%89%e8%a3%85%e5%8f%8a%e5%85%b6%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.liangliang.org.cn\/?p=581","title":{"rendered":"debian tomcat6\u5b89\u88c5\u53ca\u5176\u914d\u7f6e"},"content":{"rendered":"<p>apt-get install tomcat6 tomcat6-admin tomcat6-docs tomcat6-examples mod_jk<\/p>\n<p>\u4fee\u6539:<\/p>\n<p>\/etc\/tomcat6\/tomcat-users.xml<\/p>\n<p>\u52a0\u5165\u7ba1\u7406\u5458admin\/admin<\/p>\n<p>vim \/etc\/tomcat6\/tomcat-users.xml<br \/>\n\u5728<tomcat-users>\u4e0b\u52a0\u5165<\/p>\n<p>        <role rolename=\"manager\"\/><br \/>\n        <user username=\"admin\" password=\"admin\" roles=\"manager\"\/><\/p>\n<p>\u522b\u5fd8\u4e86\u5c06<\/p>\n<p><!--\n\n--><\/p>\n<p>\u53bb\u6389\u3002<br \/>\n\u91cd\u65b0\u542f\u52a8apache2 tomcat6<br \/>\n\/etc\/init.d\/apache2 restart<br \/>\n\/etc\/init.d\/tomcat6 restart<\/p>\n<p>\u8bbf\u95ee:<br \/>\nhttp:\/\/localhost:8080<br \/>\nIt works !<\/p>\n<p>If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!<\/p>\n<p>This is the default Tomcat home page. It can be found on the local filesystem at: \/var\/lib\/tomcat6\/webapps\/ROOT\/index.html<\/p>\n<p>Tomcat6 veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in \/usr\/share\/tomcat6 and CATALINA_BASE in \/var\/lib\/tomcat6, following the rules from \/usr\/share\/doc\/tomcat6-common\/RUNNING.txt.gz.<\/p>\n<p>You might consider installing the following packages, if you haven't already done so:<\/p>\n<p>tomcat6-docs: This package installs a web application that allows to browse the Tomcat 6 documentation locally. Once installed, you can access it by clicking here.<\/p>\n<p>tomcat6-examples: This package installs a web application that allows to access the Tomcat 6 Servlet and JSP examples. Once installed, you can access it by clicking here.<\/p>\n<p>tomcat6-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp.<\/p>\n<p>NOTE: For security reasons, using the manager webapp is restricted to users with role \"manager\". The host-manager webapp is restricted to users with role \"admin\". Users are defined in \/etc\/tomcat6\/tomcat-users.xml.<\/p>\n<p>\u7ba1\u7406\u754c\u9762\uff1a<\/p>\n<p>http:\/\/localhost:8080\/manager\/html<\/p>\n<p>\u9ed8\u8ba4web root \u5728\/var\/lib\/tomcat6\/webapps\/ROOT\/index.html<\/p>\n<p>\u6587\u6863\uff1a<\/p>\n<p>http:\/\/localhost:8080\/docs\/<\/p>\n<p>\u4f8b\u5b50:<\/p>\n<p>http:\/\/localhost:8080\/examples\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>apt-get install tomcat6 tomcat6-admin tomcat6-docs tomcat6-examples mod_jk \u4fee\u6539: \/etc\/tomcat6\/tomcat-u&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-581","post","type-post","status-publish","format-standard","hentry","category-debian"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=581"}],"version-history":[{"count":0,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/581\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}