{"id":12610,"date":"2023-06-25T19:44:57","date_gmt":"2023-06-25T10:44:57","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=12610"},"modified":"2024-01-06T16:45:02","modified_gmt":"2024-01-06T07:45:02","slug":"apache%e3%81%a8tomcat%e3%82%92%e9%80%a3%e6%90%ba%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88locky-linux-9%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/12610","title":{"rendered":"Apache\u3068Tomcat\u3092\u9023\u643a\u3059\u308b\uff01\uff08Rocky Linux 9\uff09"},"content":{"rendered":"<p>Rocky Linux 9\u3067\u52d5\u4f5c\u3059\u308bApache\u3068Tomcat\u3092\u9023\u643a\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>Tomcat\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306bTomcat\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/12290\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"Tomcat 9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Rocky Linux 9\uff09\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/11\/eyecatch_serverapps_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">Tomcat 9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Rocky Linux 9\uff09<\/div><div class=\"substr\">Rocky Linux9\u306b\u3001Tomcat 9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>Apache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306bApache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/10371\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"Apache\u3067Web\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3059\u308b\uff01\uff08Rocky Linux 9\uff09\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/11\/eyecatch_serverapps_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">Apache\u3067Web\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3059\u308b\uff01\uff08Rocky Linux 9\uff09<\/div><div class=\"substr\">Rocky Linux 9\u4e0a\u306b\u3001Apache\u3067Web\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>AJP\u306e\u901a\u4fe1\u3092\u8a31\u53ef\u3059\u308b\uff01<\/h2>\n<p>Tomcat\u304c\u52d5\u4f5c\u3059\u308b\u30b5\u30fc\u30d0\u306b\u304a\u3044\u3066\u3001AJP\u306e\u901a\u4fe1\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3,5]; title: ; notranslate\" title=\"\">\r\n# firewall-cmd --permanent --add-port=8009\/tcp\r\nsuccess\r\n# sudo firewall-cmd --reload\r\nsuccess\r\n# firewall-cmd --list-ports\r\n8009\/tcp 8080\/tcp\r\n<\/pre>\n<h2>Tomcat\u3067AJP\u306e\u901a\u4fe1\u3092\u53d7\u3051\u4ed8\u3051\u308b\uff01<\/h2>\n<p>Tomcat\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u300c\/opt\/tomcat\/conf\/server.xml\u300d\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# vi \/opt\/tomcat\/conf\/server.xml\r\n<\/pre>\n<p>Tomcat\u3067AJP\u306e\u901a\u4fe1\u3092\u53d7\u3051\u4ed8\u3051\u308b\u8a2d\u5b9a\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [10,11,12,13,14,15,16]; title: ; notranslate\" title=\"\">\r\n    &lt;!-- Define an AJP 1.3 Connector on port 8009 --&gt;\r\n    &lt;!--\r\n    &lt;Connector protocol=&quot;AJP\/1.3&quot;\r\n               address=&quot;::1&quot;\r\n               port=&quot;8009&quot;\r\n               redirectPort=&quot;8443&quot;\r\n               maxParameterCount=&quot;1000&quot;\r\n               \/&gt;\r\n    --&gt;\r\n    &lt;Connector protocol=&quot;AJP\/1.3&quot;\r\n               address=&quot;0.0.0.0&quot;\r\n               port=&quot;8009&quot;\r\n               redirectPort=&quot;8443&quot;\r\n               maxParameterCount=&quot;1000&quot;\r\n               secretRequired=&quot;false&quot;\r\n               \/&gt;\r\n<\/pre>\n<h2>Tomcat\u3092\u518d\u8d77\u52d5\u3059\u308b\uff01<\/h2>\n<p>Tomcat\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# systemctl restart tomcat.service \r\n<\/pre>\n<h2>SELinux\u3092\u7121\u52b9\u5316\u3059\u308b\uff01<\/h2>\n<p>Apache\u3092\u8d77\u52d5\u3055\u305b\u308b\u30b5\u30fc\u30d0\u306eSELinux\u3092\u7121\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n# sed -i -e &quot;s\/SELINUX=enforcing\/SELINUX=permissive\/&quot; \/etc\/selinux\/config\r\n# reboot\r\n<\/pre>\n<h2>Apache\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092Tomcat\u306b\u8ee2\u9001\u3059\u308b\uff01<\/h2>\n<p>Apache\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u300c\/etc\/httpd\/conf.d\/proxy-ajp.conf\u300d\u3092\u65b0\u898f\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# vi \/etc\/httpd\/conf.d\/proxy-ajp.conf\r\n<\/pre>\n<p>Tomcat\u304c\u7a3c\u50cd\u3059\u308b\u30b5\u30fc\u30d0\u304c\u300cvmsapp11.loc.lab4ict.com\u300d\u306e\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nProxyPass \/ ajp:\/\/vmsapp11.loc.lab4ict.com:8009\/\r\n<\/pre>\n<h2>Apache\u3092\u518d\u8d77\u52d5\u3059\u308b\uff01<\/h2>\n<p>Apache\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# systemctl restart httpd.service \r\n<\/pre>\n<h2>\u30a2\u30af\u30bb\u30b9\u78ba\u8a8d\u3092\u884c\u3046\uff01<\/h2>\n<p>curl\u30b3\u30de\u30f3\u30c9\u7b49\u3067\u3001\u30a2\u30af\u30bb\u30b9\u78ba\u8a8d\u3092\u884c\u3044\u307e\u3059\u3002FQDN\u306e\u30db\u30b9\u30c8\u540d\u306e\u5834\u5408\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u306fhttps\u3067\u306a\u3044\u3068\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# curl http:\/\/vmswww01.loc.lab4ict.com\r\n<\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u3059\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u77ed\u7e2e\u306e\u30db\u30b9\u30c8\u540d\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u540d\u524d\u89e3\u6c7a\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\nhttp:\/\/vmswww01\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>AJP\u306b\u3088\u308b\u901a\u4fe1\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u3053\u3068\u306b\u3088\u3063\u3066\u3001Apache\u3068Tomcat\u3092\u9023\u643a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/10355\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011 \u30b5\u30fc\u30d0\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/11\/eyecatch_serverapps_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011 \u30b5\u30fc\u30d0\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\uff01<\/div><div class=\"substr\">\u5404\u7a2e\u30b5\u30fc\u30d0\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/4965\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011RHEL\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/fi_rhel_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011RHEL\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">RHEL\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u53c2\u8003\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><iframe sandbox=\"allow-popups allow-scripts allow-modals allow-forms allow-same-origin\" style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=infotecr-22&language=ja_JP&o=9&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=B0B3QSS8DT&linkId=084bc293878287f1edff8e093bf34311\"><\/iframe><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rocky Linux 9\u3067\u52d5\u4f5c\u3059\u308bApache\u3068Tomcat\u3092\u9023\u643a\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":14987,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[232],"tags":[605,282,472,473,470,52,623],"class_list":["post-12610","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server-applications","tag-apache","tag-linux","tag-locky-linux","tag-locky-linux-9","tag-tomcat","tag-52","tag-623"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/12610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=12610"}],"version-history":[{"count":14,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/12610\/revisions"}],"predecessor-version":[{"id":15740,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/12610\/revisions\/15740"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/14987"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=12610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=12610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=12610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}