{"id":11976,"date":"2022-09-16T03:56:44","date_gmt":"2022-09-16T03:56:44","guid":{"rendered":"https:\/\/www.varidata.com\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04"},"modified":"2022-10-10T01:51:12","modified_gmt":"2022-10-10T01:51:12","slug":"how-to-install-apache-tomcat-on-ubuntu-18-04","status":"publish","type":"kb","link":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/","title":{"rendered":"\u5982\u4f55\u5728Ubuntu 18.04\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5Apache Tomcat\uff1f"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row gap=&#8221;25&#8243; css=&#8221;.vc_custom_1659597621929{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 0px !important;}&#8221;][vc_column css=&#8221;.vc_custom_1659597638453{margin-top: 0px !important;padding-top: 0px !important;border-radius: 20px !important;}&#8221;][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1659597647622{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;}&#8221;]Objective[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1664160070209{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 0px !important;}&#8221;]Apache Tomcat\u662f\u4e00\u4e2a\u57fa\u4e8eJava\u6280\u672f\u7684web\u670d\u52a1\u5668\uff0c\u7528\u4e8e\u7ba1\u7406web\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u60a8\u5c06\u5b66\u4e60\u5728Linux Ubuntu 18.04\u4e0a\u5b89\u88c5Tomcat\u7684\u6240\u6709\u5fc5\u8981\u8bf4\u660e\u3002<\/p>\n<p>\u9996\u5148\uff0c\u901a\u8fc7SSH\u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002\u5982\u679c\u5c1a\u672a\u8fde\u63a5\uff0c\u60a8\u53ef\u4ee5\u53c2\u8003\u6211\u4eec\u6307\u5357\u4e2d\u76f8\u5173\u7684\u5185\u5bb9\u6765\u5b8c\u6210\u8fde\u63a5SSH\u3002\u5982\u679c\u662f\u672c\u5730\u670d\u52a1\u5668\uff0c\u5219\u8fdb\u5165\u4e0b\u4e00\u6b65\uff0c\u6253\u5f00\u670d\u52a1\u5668\u7684\u7ec8\u7aef\u3002[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1664160080638{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u5b89\u88c5Java[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1664160104713{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 15px !important;}&#8221;]\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u68c0\u67e5\u7cfb\u7edf\u662f\u5426\u5df2\u7ecf\u5b89\u88c5Java:<\/p>\n<pre><code>$ java -version<\/code><\/pre>\n<p>\u5982\u679c\u5df2\u5b89\u88c5Java\uff0c\u6267\u884c\u4e0b\u4e00\u6b65\u3002\u5426\u5219\uff0c\u8bf7\u5148\u5b8c\u6210\u5b89\u88c5\u3002 \u66f4\u65b0apt\u5b58\u50a8\u5e93\uff0c\u7136\u540e\u7ee7\u7eed\u5b89\u88c5Java Development Kit:<\/p>\n<pre><code>$ sudo apt-get update &amp;&amp; sudo apt-get install default-jdk<\/code><\/pre>\n<p>[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1664160111926{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u5b89\u88c5Tomcat[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1664160242395{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 15px !important;}&#8221;]\u521b\u5efa\u5c06\u542f\u52a8Tomcat\u670d\u52a1\u7684\u65b0\u7528\u6237\u548c\u65b0\u7ec4\u3002<br \/>\n\u521b\u5efatomcat\u7ec4\uff1a<\/p>\n<pre><code>$ sudo groupadd tomcat<\/code><\/pre>\n<p>\u5e76\u521b\u5efa\u76f8\u5173\u7528\u6237&#8221;tomcat&#8221;\uff0c\u51fa\u4e8e\u5b89\u5168\u539f\u56e0\uff0c\u8be5\u7528\u6237\u4e0d\u80fd\u8bbf\u95ee\u7ec8\u7aef\uff1a<\/p>\n<pre><code>$ sudo useradd -s \/bin\/false -g tomcat -d \/usr\/local\/tomcat tomcat<\/code><\/pre>\n<p>\u521b\u5efa\u4e86\u7528\u6237\u548c\u7ec4\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u5b9e\u9645Tomcat\u3002<br \/>\n\u8fdb\u5165\/usr\/local\u76ee\u5f55\uff1a<\/p>\n<pre><code>$ cd \/usr\/local<\/code><\/pre>\n<p>\u8bbf\u95eehttps:\/\/tomcat.apache.org\/download-90.cgi\u4ee5\u786e\u4fdd\u60a8\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684Tomcat\u3002\u76ee\u524d\u4e3a\u6b62\uff0c\u6700\u65b0\u53d1\u5e03\u7684\u7248\u672c\u662f9.0.30\u3002\u4e0b\u8f7d\u8f6f\u4ef6\u5305\uff1a<\/p>\n<pre><code>$ wget http:\/\/it.apache.contactlab.it\/tomcat\/tomcat-9\/v9.0.30\/bin\/apache-tomcat-9.0.30.tar.gz<\/code><\/pre>\n<p>\u89e3\u538b\u6587\u4ef6\uff0c\u5e76\u5c06\u521a\u521a\u538b\u7f29\u6587\u4ef6\u5939\u540d\u6539\u4e3a\u201ctomcat\u201d\uff1a<\/p>\n<pre><code>$ tar xzvf apache-tomcat-9.0.30.tar.gz &amp;&amp; mv apache-tomcat-9.0.30 tomcat<\/code><\/pre>\n<p>\u7ee7\u7eed\u4e3a\u7528\u6237\u548c\u524d\u9762\u521b\u5efa\u7684\u201ctomcat\u201d\u7ec4\u914d\u7f6e\u4e0a\u8ff0\u6587\u4ef6\u5939\u7684\u6743\u9650\uff1a<\/p>\n<pre><code>$ sudo chgrp -R tomcat tomcat\r\n\r\n$ sudo chmod -R g+r tomcat\/conf\r\n\r\n$ sudo chmod g+x tomcat\/conf\r\n\r\n$ sudo chown -R tomcat tomcat\/work\/ tomcat\/logs\/ tomcat\/webapps\/ tomcat\/temp\/<\/code><\/pre>\n<p>\u8fd9\u6837\u5373\u5b8c\u6210Tomcat\u7684\u5b89\u88c5\uff0c\u4e4b\u540e\u9700\u8981\u521b\u5efa\u670d\u52a1\u6765\u542f\u52a8\u3002\u9996\u5148\uff0c\u6807\u8bb0\u5bf9\u5e94Java\u5b89\u88c5\u7684\u8def\u5f84\uff0c\u4f60\u53ef\u4ee5\u7528\u547d\u4ee4\u83b7\u5f97\u3002<\/p>\n<pre><code>$ update-java-alternatives -l<\/code><\/pre>\n<p>\u521b\u5efa\u670d\u52a1\u6240\u9700\u7684Java\u5b89\u88c5\u8def\u5f84\u5c06\u88ab\u6253\u5370\u51fa\u6765\u3002<br \/>\n\u5728 \/ etc \/ systemd \/ system \/ \u76ee\u5f55\u4e0b\u521b\u5efa tomcat.service \u6587\u4ef6<\/p>\n<pre><code>$ sudo nano \/etc\/systemd\/system\/tomcat.service<\/code><\/pre>\n<p>\u4ee5\u4e0b\u5185\u5bb9\u5fc5\u987b\u5305\u542b\u5728\u6587\u4ef6\u4e2d\uff0c\u5e76\u4e14\u5fc5\u987b\u5728\u6307\u5b9a\u4f4d\u7f6e\u4ed4\u7ec6\u66ff\u6362\u4e4b\u524d\u5b89\u88c5\u7684Java\u8def\u5f84\u3002<\/p>\n<pre><code>[Unit]\r\n\r\nDescription=Apache Tomcat\r\n\r\nAfter=network.target\r\n[Service]\r\n\r\nType=forking\r\nEnvironment=JAVA_HOME=PERCORSO_JAVA\r\n\r\nEnvironment=CATALINA_PID=\/usr\/local\/tomcat\/temp\/tomcat.pid\r\n\r\nEnvironment=CATALINA_HOME=\/usr\/local\/tomcat\r\n\r\nEnvironment=CATALINA_BASE=\/usr\/local\/tomcat\r\n\r\nEnvironment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC'\r\n\r\nEnvironment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:\/dev\/.\/urandom'\r\nExecStart=\/usr\/local\/tomcat\/bin\/startup.sh\r\n\r\nExecStop=\/usr\/local\/tomcat\/bin\/shutdown.sh\r\nUser=tomcat\r\n\r\nGroup=tomcat\r\n\r\nUMask=0007\r\n\r\nRestartSec=10\r\n\r\nRestart=always\r\n[Install]\r\n\r\nWantedBy=multi-user.target\r\nFor example in this case the file will have the following content:\r\n[Unit]\r\n\r\nDescription=Apache Tomcat\r\n\r\nAfter=network.target\r\n[Service]\r\n\r\nType=forking\r\nEnvironment=JAVA_HOME=\/usr\/lib\/jvm\/java-1.11.0-openjdk-amd64\r\n\r\nEnvironment=CATALINA_PID=\/usr\/local\/tomcat\/temp\/tomcat.pid\r\n\r\nEnvironment=CATALINA_HOME=\/usr\/local\/tomcat\r\n\r\nEnvironment=CATALINA_BASE=\/usr\/local\/tomcat\r\n\r\nEnvironment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC'\r\n\r\nEnvironment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:\/dev\/.\/urandom'\r\nExecStart=\/usr\/local\/tomcat\/bin\/startup.sh\r\n\r\nExecStop=\/usr\/local\/tomcat\/bin\/shutdown.sh\r\nUser=tomcat\r\n\r\nGroup=tomcat\r\n\r\nUMask=0007\r\n\r\nRestartSec=10\r\n\r\nRestart=always\r\n[Install]\r\n\r\nWantedBy=multi-user.target<\/code><\/pre>\n<p>[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1664160259797{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u9632\u706b\u5899[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1664160420463{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 15px !important;}&#8221;]<span style=\"font-weight: 400;\">\u5982\u679c\u7cfb\u7edf\u5df2\u6709\u9632\u706b\u5899\uff0c\u5219\u5141\u8bb8\u4f20\u8f93\u5230\u9ed8\u8ba4\u7684Tomcat\u7aef\u53e3\u62168080\u3002\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/span><\/p>\n<pre><code>$ ufw allow 8080<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">\u542f\u52a8Tomcat\u7ed3\u675f\u5b89\u88c5\uff1a<\/span><\/p>\n<pre><code>$ sudo systemctl daemon-reload &amp;&amp; sudo systemctl start tomcat<\/code><\/pre>\n<p>\u4f7f\u7528\u547d\u4ee4\u67e5\u770b\u670d\u52a1\u72b6\u6001\uff1a<\/p>\n<pre><code>$ sudo systemctl status tomcat<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">\u5982\u679c\u72b6\u6001\u4e3a\u6d3b\u8dc3\uff0c\u8bbf\u95eehttp:\/\/&lt; server . ip &gt;:8080\uff0c\u6216\u8005\u672c\u5730\u670d\u52a1\u5668http:\/\/localhost:8080\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u6b64\u65f6\u53ef\u4ee5\u770b\u5230Tomcat\u6b22\u8fce\u9875\u9762\uff0c\u5373\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/span>[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1664160270197{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u81ea\u52a8\u542f\u52a8[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1664160280309{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 15px !important;}&#8221;]\u8981\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u81ea\u52a8\u542f\u52a8Tomcat\u670d\u52a1\uff0c\u53ef\u4f7f\u7528\u8be5\u547d\u4ee4\uff1a<\/p>\n<pre><code>$ sudo systemctl enable tomcat<\/code><\/pre>\n<p>[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1664160307677{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u7ba1\u7406\u754c\u9762[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1664160391584{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 15px !important;}&#8221;]\u8981\u4f7f\u7528Tomcat\u7ba1\u7406\u754c\u9762\uff0c\u9996\u5148\u9700\u8981\u914d\u7f6e\u7528\u4e8e\u767b\u5f55\u7684\u7528\u6237\u6570\u636e\u3002<br \/>\n\u6253\u5f00Tomcat conf\u6587\u4ef6\u5939\u4e0b\u7684Tomcat -users.xml\u6587\u4ef6\uff1a<\/p>\n<pre><code>$ sudo nano \/usr\/local\/tomcat\/conf\/tomcat-users.xml<\/code><\/pre>\n<p>\u7136\u540e\u5728\u7ed3\u675f\u6807\u8bb0\u4e4b\u524d\u6dfb\u52a0\uff1a<\/p>\n<pre><code>&lt;user username=\"MYUSER\" password=\"MYPASSWORD\" roles=\"manager-gui,admin-gui\"\/&gt;<\/code><\/pre>\n<p>\u5c06MYUSER\u548cMYPASSWORD\u66ff\u6362\u4e3a\u60a8\u60f3\u8981\u4f7f\u7528\u7684\u8eab\u4efd\u9a8c\u8bc1\u6570\u636e\uff1a<\/p>\n<pre><code>&lt;user user username=\"ADMIN\" password=\"ARUBA123\" roles=\"manager-gui,admin-gui\"\/&gt;<\/code><\/pre>\n<p>\u6b64\u65f6\uff0c\u5c06\u7528\u6237\u914d\u7f6e\u4e3a\u8bbf\u95ee\u7ba1\u7406\u754c\u9762\u3002<br \/>\n\u5982\u679c\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u5b89\u88c5tomcat\u6765\u4ece\u6d4f\u89c8\u5668\u8bbf\u95ee\u7ba1\u7406\u754c\u9762\uff0c\u8fd8\u9700\u8981\u7981\u7528\u4e00\u4e9b\u5b89\u5168\u9650\u5236\uff1a\u6253\u5f00context.xml\u6587\u4ef6\uff1a<\/p>\n<pre><code>$ sudo nano \/usr\/local\/tomcat\/webapps\/manager\/META-INF\/context.xml<\/code><\/pre>\n<p>\u5e76\u5c06\u5176\u5185\u5bb9\u6539\u4e3a:<\/p>\n<pre><code>&lt;Context antiResourceLocking=\"false\" privileged=\"true\" &gt;<\/code><\/pre>\n<pre><code>&lt;\/Context&gt;<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">\u4fdd\u5b58\u540e\u5173\u95ed\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u6700\u540e\uff0c\u8bf7\u91cd\u542fTomcat\u670d\u52a1\uff1a<\/span><\/p>\n<pre><code>$ sudo systemctl restart tomcat<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">\u8bbf\u95eehttp:\/\/&lt; server . ip &gt;:8080\/manager\/html\uff0c\u5982\u679c\u662f\u672c\u5730\u670d\u52a1\u5668\uff0c\u5219\u8bbf\u95eehttp:\/\/localhost:8080\/manager\/html\u3002\u901a\u8fc7\u8f93\u5165\u524d\u9762\u8bbe\u7f6e\u7684\u51ed\u8bc1\uff0c\u8bbf\u95eeTomcat\u7ba1\u7406\u63a7\u5236\u53f0\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u5b8c\u6210Tomcat\u914d\u7f6e\u3002<\/span>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"featured_media":0,"template":"","kb_category":[465],"class_list":["post-11976","kb","type-kb","status-publish","hentry","kb_category-ubuntu-sc"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728Ubuntu 18.04\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5Apache Tomcat\uff1f - Varidata Limited<\/title>\n<meta name=\"description\" content=\"ObjectiveApache Tomcat\u662f\u4e00\u4e2a\u57fa\u4e8eJava\u6280\u672f\u7684web\u670d\u52a1\u5668\uff0c\u7528\u4e8e\u7ba1\u7406web\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u60a8\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728Ubuntu 18.04\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5Apache Tomcat\uff1f - Varidata Limited\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Varidata Limited\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-10T01:51:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.varidata.com\/wp-content\/uploads\/2023\/01\/varidata_logo_black.png\" \/>\n\t<meta property=\"og:image:width\" content=\"248\" \/>\n\t<meta property=\"og:image:height\" content=\"94\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/\",\"url\":\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/\",\"name\":\"\u5982\u4f55\u5728Ubuntu 18.04\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5Apache Tomcat\uff1f - Varidata Limited\",\"isPartOf\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#website\"},\"datePublished\":\"2022-09-16T03:56:44+00:00\",\"dateModified\":\"2022-10-10T01:51:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/#breadcrumb\"},\"inLanguage\":\"zh-SC\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.varidata.com\/zh-cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledgebase\",\"item\":\"https:\/\/www.varidata.com\/zh-tw\/kb\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u5982\u4f55\u5728Ubuntu 18.04\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5Apache Tomcat\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#website\",\"url\":\"https:\/\/www.varidata.com\/zh-cn\/\",\"name\":\"Varidata Limited\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.varidata.com\/zh-cn\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-SC\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#organization\",\"name\":\"Varidata\",\"url\":\"https:\/\/www.varidata.com\/zh-cn\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-SC\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png\",\"contentUrl\":\"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png\",\"width\":248,\"height\":94,\"caption\":\"Varidata\"},\"image\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728Ubuntu 18.04\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5Apache Tomcat\uff1f - Varidata Limited","description":"ObjectiveApache Tomcat\u662f\u4e00\u4e2a\u57fa\u4e8eJava\u6280\u672f\u7684web\u670d\u52a1\u5668\uff0c\u7528\u4e8e\u7ba1\u7406web\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u60a8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728Ubuntu 18.04\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5Apache Tomcat\uff1f - Varidata Limited","og_url":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/","og_site_name":"Varidata Limited","article_modified_time":"2022-10-10T01:51:12+00:00","og_image":[{"width":248,"height":94,"url":"https:\/\/www.varidata.com\/wp-content\/uploads\/2023\/01\/varidata_logo_black.png","type":"image\/png"}],"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/","url":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/","name":"\u5982\u4f55\u5728Ubuntu 18.04\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5Apache Tomcat\uff1f - Varidata Limited","isPartOf":{"@id":"https:\/\/www.varidata.com\/zh-cn\/#website"},"datePublished":"2022-09-16T03:56:44+00:00","dateModified":"2022-10-10T01:51:12+00:00","breadcrumb":{"@id":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"zh-SC","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-apache-tomcat-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.varidata.com\/zh-cn\/"},{"@type":"ListItem","position":2,"name":"Knowledgebase","item":"https:\/\/www.varidata.com\/zh-tw\/kb\/"},{"@type":"ListItem","position":3,"name":"\u5982\u4f55\u5728Ubuntu 18.04\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5Apache Tomcat\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.varidata.com\/zh-cn\/#website","url":"https:\/\/www.varidata.com\/zh-cn\/","name":"Varidata Limited","description":"","publisher":{"@id":"https:\/\/www.varidata.com\/zh-cn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.varidata.com\/zh-cn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-SC"},{"@type":"Organization","@id":"https:\/\/www.varidata.com\/zh-cn\/#organization","name":"Varidata","url":"https:\/\/www.varidata.com\/zh-cn\/","logo":{"@type":"ImageObject","inLanguage":"zh-SC","@id":"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/logo\/image\/","url":"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png","contentUrl":"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png","width":248,"height":94,"caption":"Varidata"},"image":{"@id":"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/kb\/11976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/types\/kb"}],"wp:attachment":[{"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/media?parent=11976"}],"wp:term":[{"taxonomy":"kb_category","embeddable":true,"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/kb_category?post=11976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}