{"id":92,"date":"2014-02-04T10:41:07","date_gmt":"2014-02-04T01:41:07","guid":{"rendered":"http:\/\/www.fsquare.co.kr\/?p=92"},"modified":"2015-02-18T15:59:27","modified_gmt":"2015-02-18T06:59:27","slug":"ubuntu-tomcat7-port%eb%a5%bc-80%ec%9c%bc%eb%a1%9c-%ec%84%a4%ec%a0%95","status":"publish","type":"post","link":"https:\/\/www.fsquare.co.kr\/?p=92","title":{"rendered":"[ubuntu] Tomcat7 port\ub97c 80\uc73c\ub85c \uc124\uc815"},"content":{"rendered":"<p>ubuntu\uc5d0 tomcat7\uc744 \uc124\uce58 ( apt-get install tomcat7)\uc744 \ud55c \ub2e4\uc74c \ud3ec\ud2b8\ubc88\ud638\ub97c<br \/>\n80\uc73c\ub85c \ubc14\uafd4 \uc6f9\uc11c\ubc84\uc640 \uc11c\ube14\ub9bf \uc11c\ubc84\ub97c tomcat7 \ud558\ub098\ub85c \uc0ac\uc6a9\ud558\ub824\uace0 \ud588\uc73c\ub098 ubuntu\ub294 \uc5ed\uc2dc \uc5b4\ub824\uc6e0\ub2e4.<\/p>\n<p>CentOS\uc5d0\uc11c\ucc98\ub7fc<br \/>\n\/etc\/tomcat7\/server.xml\ud30c\uc77c\uc758 Listen port(8080)\ub97c 80\uc73c\ub85c \ubc14\uafb8\uace0<br \/>\n\/etc\/default\/tomcat7\ud30c\uc77c\uc758 AUTHBIND=yes\ub97c \uc9c0\uc815\ud558\uace0<\/p>\n<p>service tomcat7 restart<\/p>\n<p>\ub97c \ud558\uba74 \uc5ed\uc2dc<\/p>\n<p>SEVERE: Failed to initialize end point associated with ProtocolHandler [&#8220;http-bio-80&#8221;]<br \/>\njava.net.BindException: Permission denied <null>:80<br \/>\n        at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:410)<br \/>\n        at org.apache.tomcat.util.net.AbstractEnd &#8230;<\/p>\n<p>\uc774\ub7f0 \uc5d0\ub7ec\uac00 \ub72c\ub2e4. (error log \ud30c\uc77c\uc5d0 log\ub9cc \ub0a8\uace0 \ud504\ub85c\uc138\uc2a4\uac00 \uc8fd\uc5b4\ubc84\ub9ac\uac70\ub098, bind error\uac00 \ub09c \uc0c1\ud0dc\ub85c \ub5a0 \uc788\ub294\ub2e4)<\/p>\n<p>\uc774 \ub54c \ud574\uacb0\ucc45\uc740<br \/>\n1. authbind\uac00 \uc788\ub294\uc9c0 \ud655\uc778\ud558\uace0 \uc5c6\uc73c\uba74 \uc124\uce58(authbind\uba85\ub839\uc744 \ub0b4\ub824 \uc5d0\ub7ec\uac00 \ub098\uc9c0 \uc54a\uc73c\uba74 \uc124\uce58\ub418\uc5b4 \uc788\uc74c)<\/p>\n<p>2. root\uc758 \uad8c\ud55c\uc73c\ub85c \/etc\/authbind\/byport\uc5d0 80 \ud30c\uc77c\uc744 \ub9cc\ub4e4\uace0 tomcat7\uc5d0\uac8c \uad8c\ud55c\uc744 \uc900\ub2e4.<br \/>\ntouch \/etc\/authbind\/byport\/80<br \/>\nchmod 500 \/etc\/authbind\/byport\/80<br \/>\nchown tomcat7.tomcat7 \/etc\/authbind\/byport\/80<\/p>\n<p>3. tomcat\uc758 network\uc744 IPv4\uac00 default\uac00 \ub418\uac8c \uc124\uc815\ud574 \uc900\ub2e4.<br \/>\ncd [TOMCAT_HOME(\uc8fc\ub85c \/usr\/share\/tomcat7)]\/bin<br \/>\nvi setenv.sh<br \/>\n\ub2e4\uc74c\uc744 \uc785\ub825\ud55c\ub2e4.<br \/>\nCATALINA_OPTS=&#8221;-Djava.net.preperIPv4Stack=true&#8221;<br \/>\n\ub2e4\uc74c\uc5d0\ub294 \uac19\uc740 \ub514\ub809\ud1a0\ub9ac\uc5d0 \uc788\ub294 startup.sh \ud30c\uc77c\uc744 \uc218\uc815\ud55c\ub2e4.<br \/>\n\uac00\uc7a5 \uc544\ub7ab\ucabd\uc5d0 \uc8fc\ub85c \uc788\ub294 \ub2e4\uc74c\uc758 \uc904\uc744<br \/>\nexec \u201c$PRGDIR\u201d\/\u201d$EXECUTABLE\u201d start \u201c$@\u201d<br \/>\n\ub2e4\uc74c\uacfc \uac19\uc774 \ubcc0\uacbd\ud55c\ub2e4.<br \/>\nexec <b>authbind -deep<\/b> \u201c$PRGDIR\u201d\/\u201d$EXECUTABLE\u201d start \u201c$@\u201d<\/p>\n<p>\uadf8\ub9ac\uace0 tomcat7\uc744 \ub2e4\uc2dc \uc2dc\uc791\ud558\uba74 \uc5d0\ub7ec\uac00 \ub098\uc9c0 \uc54a\ub294\ub2e4.<br \/>\nservice tomcat7 restart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ubuntu\uc5d0 tomcat7\uc744 \uc124\uce58 ( apt-get install tomcat7)\uc744 \ud55c \ub2e4\uc74c \ud3ec\ud2b8\ubc88\ud638\ub97c 80\uc73c\ub85c \ubc14\uafd4 \uc6f9\uc11c\ubc84\uc640 \uc11c\ube14\ub9bf \uc11c\ubc84\ub97c tomcat7 \ud558\ub098\ub85c \uc0ac\uc6a9\ud558\ub824\uace0 \ud588\uc73c\ub098 ubuntu\ub294 \uc5ed\uc2dc \uc5b4\ub824\uc6e0\ub2e4. CentOS\uc5d0\uc11c\ucc98\ub7fc \/etc\/tomcat7\/server.xml\ud30c\uc77c\uc758 Listen port(8080)\ub97c 80\uc73c\ub85c \ubc14\uafb8\uace0 \/etc\/default\/tomcat7\ud30c\uc77c\uc758 AUTHBIND=yes\ub97c \uc9c0\uc815\ud558\uace0 service tomcat7 restart \ub97c \ud558\uba74 \uc5ed\uc2dc SEVERE: Failed to initialize end point associated with ProtocolHandler [&#8220;http-bio-80&#8221;] java.net.BindException: Permission denied :80 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:410) at org.apache.tomcat.util.net.AbstractEnd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=92"}],"version-history":[{"count":4,"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/92\/revisions"}],"predecessor-version":[{"id":97,"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/92\/revisions\/97"}],"wp:attachment":[{"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}