{"id":311,"date":"2013-06-24T14:45:25","date_gmt":"2013-06-24T14:45:25","guid":{"rendered":"http:\/\/blog.toyzon.com\/?p=311"},"modified":"2013-06-24T14:45:25","modified_gmt":"2013-06-24T14:45:25","slug":"%ed%86%b0%ec%ba%a3-%ec%8b%9c%ec%9e%91-%ec%8a%a4%ed%81%ac%eb%a6%bd%ed%8a%b8","status":"publish","type":"post","link":"https:\/\/www.toyzon.com\/?p=311","title":{"rendered":"\ud1b0\ucea3 \uc2dc\uc791 \uc2a4\ud06c\ub9bd\ud2b8"},"content":{"rendered":"<p>\/etc\/init.d\/tomcat<\/p>\n<p>#!\/bin\/sh<br \/>tomcat=usr\/local\/tomcat\/tomcat-6.0.35<br \/>startup=$tomcat\/bin\/startup.sh<br \/>shutdown=$tomcat\/bin\/shutdown.sh<\/p>\n<p>start() {<br \/>&nbsp; echo -n $&#8221;Starting Tomcat service: &#8220;<br \/>&nbsp; sh $startup<br \/>&nbsp; echo $?<br \/>}<\/p>\n<p>stop() {<br \/>&nbsp; echo -n $&#8221;Stopping Tomcat service: &#8220;<br \/>&nbsp; sh $shutdown<br \/>&nbsp; echo $?<br \/>}<\/p>\n<p>restart() {<br \/>&nbsp; stop<br \/>&nbsp; start<br \/>}<\/p>\n<p>status() {<br \/>&nbsp; ps -aef | grep tomcat | grep -v grep<br \/>}<\/p>\n<p># Handle the different input options<br \/>case &#8220;$1&#8221; in<br \/>start)<br \/>&nbsp; start<br \/>&nbsp; ;;<br \/>stop)<br \/>&nbsp; stop<br \/>&nbsp; ;;<br \/>status)<br \/>&nbsp; status<br \/>&nbsp; ;;<br \/>restart)<br \/>&nbsp; restart<br \/>&nbsp; ;;<br \/>*)<br \/>&nbsp; echo $&#8221;Usage: $0 {start|stop|restart|status}&#8221;<br \/>&nbsp; exit 1<br \/>esac<\/p>\n<p>exit 0<\/p>\n<p>\ud574\ub2f9 \ud30c\uc77c \ub4f1\ub85d \ud6c4 service tomcat restart \ub85c \ud1b0\ucea3 \uc7ac\uc2dc\uc791 \uac00\ub2a5<\/p>\n <!-- AdSense Now! Lite: WP is not in the loop.  -->\n","protected":false},"excerpt":{"rendered":"<p>\/etc\/init.d\/tomcat #!\/bin\/shtomcat=usr\/local\/tomcat\/tomcat-6.0.35startup=$tomcat\/bin\/startup.shshutdown=$tomcat\/bin\/shutdown.sh start() {&nbsp; echo -n $&#8221;Starting Tomcat service: &#8220;&nbsp; sh $startup&nbsp; echo $?} stop() {&nbsp; echo -n $&#8221;Stopping Tomcat service: &#8220;&nbsp; sh $shutdown&nbsp; echo $?} restart() {&nbsp; stop&nbsp; start} status() {&nbsp; ps -aef | grep tomcat | grep -v grep} # Handle the different input optionscase &#8220;$1&#8221; instart)&nbsp; start&nbsp; ;;stop)&nbsp; stop&nbsp; ;;status)&nbsp; status&nbsp; ;;restart)&nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"\ud1b0\ucea3 \uc2dc\uc791 \uc2a4\ud06c\ub9bd\ud2b8 - ToyZon","description":"\/etc\/init.d\/tomcat #!\/bin\/sh tomcat=usr\/local\/tomcat\/tomcat-6.0.35 startup=$tomcat\/bin\/startup.sh shutdown=$tomcat\/bin\/shutdown.sh start() { &nbsp; echo -n $\"St"},"footnotes":""},"categories":[243],"tags":[222,223,224],"class_list":["post-311","post","type-post","status-publish","format-standard","hentry","category-linux-","tag-etcinit-dtomcat","tag-tomcat","tag-224"],"_links":{"self":[{"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/posts\/311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=311"}],"version-history":[{"count":0,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/posts\/311\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.toyzon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}