{"id":13324,"date":"2023-07-29T16:19:23","date_gmt":"2023-07-29T07:19:23","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=13324"},"modified":"2024-01-06T16:44:39","modified_gmt":"2024-01-06T07:44:39","slug":"jetty-10%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88rocky-linux-9%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/13324","title":{"rendered":"Jetty 10\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Rocky Linux 9\uff09"},"content":{"rendered":"<p>Rocky Linux 9\u306b\u3001Jetty 10\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u74b0\u5883\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>Tomcat 9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u74b0\u5883\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# hostnamectl\r\n Static hostname: vmsapp11.loc.lab4ict.com\r\n       Icon name: computer-vm\r\n         Chassis: vm\r\n      Machine ID: b562ef5fa24c465d81798fd3224943d6\r\n         Boot ID: fe715e2608724cbfa9e85850b3d3acfb\r\n  Virtualization: oracle\r\nOperating System: Rocky Linux 9.2 (Blue Onyx)       \r\n     CPE OS Name: cpe:\/o:rocky:rocky:9::baseos\r\n          Kernel: Linux 5.14.0-284.11.1.el9_2.x86_64\r\n    Architecture: x86-64\r\n Hardware Vendor: innotek GmbH\r\n  Hardware Model: VirtualBox\r\nFirmware Version: VirtualBox\r\n<\/pre>\n<h2>Java\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>\u4ee5\u4e0b\u306e\u8a18\u4e8b\u306b\u5f93\u3063\u3066\u3001Java\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\/12284\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"Java 17\uff08Open JDK\uff09\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\/2018\/06\/fia0000001-150x150.gif\" class=\"lazyload\"><\/div><div class=\"title\">Java 17\uff08Open JDK\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Rocky Linux 9\uff09<\/div><div class=\"substr\">Rocky Linux9\u306b\u3001Java 17\uff08OpenJDK\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>Jetty 10\u3092\u52d5\u4f5c\u3055\u305b\u308b\u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3059\u308b\uff01<\/h2>\n<p>\u300cjetty\u300d\u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# useradd -m -d \/opt\/jetty -U -s \/bin\/false jetty\r\n<\/pre>\n<h2>Jetty 10\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\uff01<\/h2>\n<p>Jetty 10\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# wget https:\/\/repo1.maven.org\/maven2\/org\/eclipse\/jetty\/jetty-home\/10.0.15\/jetty-home-10.0.15.tar.gz\r\n--2023-07-29 15:39:59--  https:\/\/repo1.maven.org\/maven2\/org\/eclipse\/jetty\/jetty-home\/10.0.15\/jetty-home-10.0.15.tar.gz\r\nResolving repo1.maven.org (repo1.maven.org)... 151.101.40.209, 2a04:4e42:a::209\r\nConnecting to repo1.maven.org (repo1.maven.org)|151.101.40.209|:443... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 10995118 (10M) &#x5B;application\/x-gzip]\r\nSaving to: \u2018jetty-home-10.0.15.tar.gz\u2019\r\n\r\njetty-home-10.0.15.tar.gz     100%&#x5B;=================================================&gt;]  10.49M  8.33MB\/s    in 1.3s    \r\n\r\n2023-07-29 15:40:08 (8.33 MB\/s) - \u2018jetty-home-10.0.15.tar.gz\u2019 saved &#x5B;10995118\/10995118]\r\n\r\n<\/pre>\n<h2>\u30c0\u30a6\u30f3\u30c8\u30fc\u30ed\u3057\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>Jetty 10\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2,3]; title: ; notranslate\" title=\"\">\r\n# tar xzf jetty-home-10.0.15.tar.gz\r\n# mv jetty-home-10.0.15\/* \/opt\/jetty\/\r\n# chown -R jetty:jetty \/opt\/jetty\/\r\n<\/pre>\n<h2>SELinux\u306e\u30e2\u30fc\u30c9\u3092permissive\u306b\u5909\u66f4\u3059\u308b\uff01<\/h2>\n<p>SELinux\u306e\u30e2\u30fc\u30c9\u3092enforcing\u304b\u3089permissive\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2,3]; title: ; notranslate\" title=\"\">\r\n# vi \/etc\/selinux\/config\r\n<\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nSELINUX=permissive\r\n<\/pre>\n<h2>firewalld\u3067\u901a\u4fe1\u8a31\u53ef\u8a2d\u5b9a\u3092\u884c\u3046\uff01<\/h2>\n<p>8080\u30dd\u30fc\u30c8\u306e\u901a\u4fe1\u8a31\u53ef\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3,5]; title: ; notranslate\" title=\"\">\r\n# firewall-cmd --permanent --add-port=8080\/tcp\r\nsuccess\r\n# sudo firewall-cmd --reload\r\nsuccess\r\n# firewall-cmd --list-ports\r\n8080\/tcp\r\n<\/pre>\n<h2>jetty\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u884c\u3046\uff01<\/h2>\n<p>jetty\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2,3,4]; title: ; notranslate\" title=\"\">\r\n# mkdir \/opt\/jetty.base\r\n# chmod jetty:jetty \/opt\/jetty.base\r\n# cd \/opt\/jetty.base\r\n# java -jar \/opt\/jetty\/start.jar --add-module=http\r\nINFO  : mkdir ${jetty.base}\/start.d\r\nINFO  : server          transitively enabled, ini template available with --add-module=server\r\nINFO  : logging-jetty   transitively enabled\r\nINFO  : http            initialized in ${jetty.base}\/start.d\/http.ini\r\nINFO  : resources       transitively enabled\r\nINFO  : threadpool      transitively enabled, ini template available with --add-module=threadpool\r\nINFO  : logging\/slf4j   dynamic dependency of logging-jetty\r\nINFO  : bytebufferpool  transitively enabled, ini template available with --add-module=bytebufferpool\r\nINFO  : mkdir ${jetty.base}\/resources\r\nINFO  : copy ${jetty.home}\/modules\/logging\/jetty\/resources\/jetty-logging.properties to ${jetty.base}\/resources\/jetty-logging.properties\r\nINFO  : Base directory was modified\r\n<\/pre>\n<h2>jetty\u3092\u8d77\u52d5\u3057\u3066\u307f\u308b\uff01<\/h2>\n<p>jetty\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u8d77\u52d5\u3057\u305f\u3089\u3001\u300cCtrl-c\u300d\u3067\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# java -jar \/opt\/jetty\/start.jar\r\n2023-07-29 16:08:38.963:INFO :oejs.Server:main: jetty-10.0.15; built: 2023-04-11T17:25:14.480Z; git: 68017dbd00236bb7e187330d7585a059610f661d; jvm 17.0.7+7-LTS\r\n2023-07-29 16:08:39.063:INFO :oejs.AbstractConnector:main: Started ServerConnector@7a623c1b{HTTP\/1.1, (http\/1.1)}{0.0.0.0:8080}\r\n2023-07-29 16:08:39.074:INFO :oejs.Server:main: Started Server@67a20f67{STARTING}&#x5B;10.0.15,sto=5000] @1393ms\r\n^C2023-07-29 16:09:02.102:INFO :oejs.Server:JettyShutdownThread: Stopped Server@67a20f67{STOPPING}&#x5B;10.0.15,sto=5000]\r\n2023-07-29 16:09:02.103:INFO :oejs.Server:JettyShutdownThread: Shutdown Server@67a20f67{STOPPING}&#x5B;10.0.15,sto=5000]\r\n2023-07-29 16:09:02.112:INFO :oejs.AbstractConnector:JettyShutdownThread: Stopped ServerConnector@7a623c1b{HTTP\/1.1, (http\/1.1)}{0.0.0.0:8080}\r\n<\/pre>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30aa\u30fc\u30ca\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# chown -R jetty:jetty \/opt\/jetty.base\/\r\n<\/pre>\n<h2>Jetty\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\uff01<\/h2>\n<p>jetty\u3092\u8d77\u52d5\u3057\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u3084curl\u30b3\u30de\u30f3\u30c9\u3067\u3001Tomcat\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nhttp:\/\/vmsapp11.loc.lab4ict.com:8080\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Rocky Linux 9\u306bJetty\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002SELinux\u3001Firewalld\u306e\u8a2d\u5b9a\u3082\u5fd8\u308c\u305a\u306b\u884c\u3046\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/eclipse.dev\/jetty\/\" rel=\"noopener\" target=\"_blank\">The Eclipse Jetty Project\uff08https:\/\/eclipse.dev\/jetty\/\uff09<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rocky Linux 9\u306b\u3001Jetty 10\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\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":[428,849,850,282,467,469,52],"class_list":["post-13324","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server-applications","tag-eclipse","tag-jetty","tag-jetty-10","tag-linux","tag-rocky-linux","tag-rocky-linux-9","tag-52"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13324","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=13324"}],"version-history":[{"count":10,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13324\/revisions"}],"predecessor-version":[{"id":15739,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13324\/revisions\/15739"}],"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=13324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=13324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=13324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}