{"id":78,"date":"2013-10-15T02:29:00","date_gmt":"2013-10-14T17:29:00","guid":{"rendered":"https:\/\/www.picolix.jp\/blog\/2013\/10\/centos6-tomcat7.html\/"},"modified":"2019-04-02T10:27:00","modified_gmt":"2019-04-02T01:27:00","slug":"centos6-tomcat7","status":"publish","type":"post","link":"https:\/\/www.picolix.jp\/blog\/2013\/10\/centos6-tomcat7.html","title":{"rendered":"CentOS6 tomcat7\u306e\u8d77\u52d5\u304c\u9045\u3044\u554f\u984c\u5bfe\u7b56\u3002"},"content":{"rendered":"<p>\u300c\u30e1\u30e2\u300d<\/p>\n<p>1.tomcat7 ipv6\u7121\u52b9\u53ca\u3073randam\u30c9\u30e9\u30a4\u30d0\u30fc\u5909\u66f4<\/p>\n<p>&nbsp;1) \/etc\/sysconfig\/tomcat7\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3002<br \/>\n&nbsp; JAVA_OPTS=&#8221;-Djava.net.preferIPv4Stack=true -Djava.security.egd=file:\/dev\/.\/urandom&#8221;<\/p>\n<p>&nbsp;\u203b-Djava.net.preferIPv4Stack=true\u306f\u8d77\u52d5\u6642\u306eservlet50x\u30a8\u30e9\u30fc\u56de\u907f<br \/>\n&nbsp; &nbsp;-Djava.security.egd=file:\/dev\/.\/urandom&#8221;\u306f\u8d77\u52d5\u6642\u306b\u6570\u5341\u79d2\u304b\u304b\u3063\u3066\u3057\u307e\u3046\u5834\u5408\u304c\u3042\u308b\u554f\u984c\u306e\u56de\u907f<\/p>\n<p>&nbsp; \u8d77\u52d5\u4e2d\u306b\u4e71\u6570\u751f\u6210\u3067\u3001\/dev\/random\u304c\u4f7f\u308f\u308c\u308b\u3068<br \/>\n\u3000\u300c\u30a8\u30f3\u30c8\u30ed\u30d4\u30fc\u30d7\u30fc\u30eb\u304c\u7a7a\u306e\u5834\u5408\u3001\/dev\/random \u304b\u3089\u8aad\u307f\u51fa\u305d\u3046\u3068\u3059\u308b\u3068\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3001\u74b0\u5883\u30ce\u30a4\u30ba\u306e\u53ce\u96c6\u304c\u306a\u3055\u308c\u308b\u307e\u3067\u5f85\u305f\u3055\u308c\u308b\u3002\u300d<br \/>\n\u3000wiki\u3088\u308a\u3002<a href=\"http:\/\/ja.wikipedia.org\/wiki\/\/dev\/random\">http:\/\/ja.wikipedia.org\/wiki\/\/dev\/random<\/a><\/p>\n<p>\u3000\u3067\u3001\u4ee3\u308f\u308a\u306b\u30ce\u30f3\u30d6\u30ed\u30c3\u30ad\u30f3\u30b0\u306eurandom\u3092\u4f7f\u3046\u3002<br \/>\n\u3000<a href=\"http:\/\/wiki.apache.org\/tomcat\/HowTo\/FasterStartUp\">http:\/\/wiki.apache.org\/tomcat\/HowTo\/FasterStartUp<\/a><br \/>\n\u3000<\/p>\n<p>2.web.xml\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0<\/p>\n<p>&nbsp;1) \/project\/sysk\/WEB-INF\/web.xml\u306eweb-app\u306e\u5f8c\u306bmetadata-complete=&#8221;true&#8221;\u3092\u8ffd\u52a0\u3002<\/p>\n<p>&lt;web-app metadata-complete=&#8221;true&#8221;<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; xmlns=&#8221;http:\/\/java.sun.com\/xml\/ns\/j2ee&#8221;<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; xmlns:xsi=&#8221;http:\/\/www.w3.org\/2001\/XMLSchema-instance&#8221;<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; xsi:schemaLocation=&#8221;http:\/\/java.sun.com\/xml\/ns\/j2ee http:\/\/java.sun.com\/xml\/ns\/j2e<br \/>\ne\/web-app_2_4.xsd&#8221;<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; version=&#8221;2.4&#8243;&gt;<\/p>\n<p>&nbsp;\u203bWEB-INF\/lib \u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092VM\u304c\u30b9\u30ad\u30e3\u30f3\u3059\u308b\u306e\u3092\u7121\u52b9\u306b\u3059\u308b\u3002<\/p>\n<p>\n\u3000=============================<br \/>\n\u30001.ipv6\u305d\u306e\u3082\u306e\u3092\u7121\u52b9\u306b\u3057\u305f\u3044\u6642<\/p>\n<p>&nbsp;1) \/etc\/sysconfig\/network\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3002<br \/>\n&nbsp; NETWORKING_IPV6=no<br \/>\n&nbsp;2) \/etc\/modprobe.d\/disable-ipv6.conf\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u4ee5\u4e0b\u3092\u66f8\u304f\u3002<br \/>\n&nbsp; options ipv6 disable=1<br \/>\n&nbsp;3) ip6tables\u30b5\u30fc\u30d3\u30b9\u3092\u8d77\u52d5\u3057\u3066\u3044\u308b\u5834\u5408\u3002<br \/>\n&nbsp; chkconfig ip6tables off<br \/>\n&nbsp;4) \u30ea\u30d6\u30fc\u30c8<br \/>\n&nbsp;==============================<\/p>\n<div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u300c\u30e1\u30e2\u300d 1.tomcat7 ipv6\u7121\u52b9\u53ca\u3073randam\u30c9\u30e9\u30a4\u30d0\u30fc\u5909\u66f4 &nbsp;1) \/etc\/sysconfig\/tomcat7\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3002 &nbsp; JAVA_OPTS=&#8221;-Djava.net &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.picolix.jp\/blog\/2013\/10\/centos6-tomcat7.html\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;CentOS6 tomcat7\u306e\u8d77\u52d5\u304c\u9045\u3044\u554f\u984c\u5bfe\u7b56\u3002&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[6],"_links":{"self":[{"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/posts\/78"}],"collection":[{"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":1,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":1331,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/posts\/78\/revisions\/1331"}],"wp:attachment":[{"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}