{"id":54,"date":"2013-09-22T19:50:48","date_gmt":"2013-09-23T00:50:48","guid":{"rendered":"http:\/\/blog.espol.edu.ec\/webespol\/?p=54"},"modified":"2013-09-22T19:50:48","modified_gmt":"2013-09-23T00:50:48","slug":"configurar-tomcat-como-servicio-centos","status":"publish","type":"post","link":"https:\/\/blog.espol.edu.ec\/webespol\/2013\/09\/22\/configurar-tomcat-como-servicio-centos\/","title":{"rendered":"Configurar Tomcat como servicio CentOS"},"content":{"rendered":"<p>1.- Crear archivo tomcat en la ruta \/etc\/rc.d\/init.d<\/p>\n<p>#!\/bin\/bash<br \/>\n#<br \/>\n# Iniciaci\u00c3\u00b3n automatica de TOMCAT6D<br \/>\n#<br \/>\n# chkconfig: - 55 25<br \/>\n# description: Demonio de iniciaci\u00c3\u00b3n TOMCAT7D 7.0.29<br \/>\n#<br \/>\n# processname: tomcat7d<br \/>\n# pidfile: \/var\/run\/tomcat7d.pid<\/p>\n<p>#export JAVA_HOME=\/usr\/java\/jdk1.6.0_20<br \/>\nexport CATALINA_HOME=\/var\/apache-tomcat-7.0.29<br \/>\nstart(){<br \/>\necho \"Iniciando Tomcat7\"<br \/>\n$CATALINA_HOME\/bin\/startup.sh<br \/>\n}<\/p>\n<p>stop() {<br \/>\necho \"Deteniendo Tomcat7\"<br \/>\n$CATALINA_HOME\/bin\/shutdown.sh<br \/>\n}<br \/>\nrestart(){<br \/>\nstop<br \/>\nstart<br \/>\n}<\/p>\n<p># See how we were called.<br \/>\ncase $1 in<br \/>\nstart)<br \/>\nstart<br \/>\n;;<br \/>\nstop)<br \/>\nstop<br \/>\n;;<br \/>\nrestart)<br \/>\nrestart<br \/>\n;;<br \/>\n*)<br \/>\necho \"Utilice los Par\u00c3\u00a1metros: $0 {start|stop|restart}\"<br \/>\nexit 1<br \/>\nesac<br \/>\nexit 0<\/p>\n<p>2.- Darle permisos de ejecuci\u00f3n<\/p>\n<p>3.- chkconfig --add tomcat<\/p>\n<p>4.- chkconfig tomcat on<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.- Crear archivo tomcat en la ruta \/etc\/rc.d\/init.d #!\/bin\/bash # # Iniciaci\u00c3\u00b3n automatica de TOMCAT6D # # chkconfig: - 55 25 # description: Demonio de iniciaci\u00c3\u00b3n TOMCAT7D 7.0.29 # # processname: tomcat7d # pidfile: \/var\/run\/tomcat7d.pid #export JAVA_HOME=\/usr\/java\/jdk1.6.0_20 export CATALINA_HOME=\/var\/apache-tomcat-7.0.29 start(){ echo \"Iniciando Tomcat7\" $CATALINA_HOME\/bin\/startup.sh } stop() { echo \"Deteniendo Tomcat7\" $CATALINA_HOME\/bin\/shutdown.sh } restart(){ stop start [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1171586,4436],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-centos","tag-tomcat"],"_links":{"self":[{"href":"https:\/\/blog.espol.edu.ec\/webespol\/wp-json\/wp\/v2\/posts\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espol.edu.ec\/webespol\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espol.edu.ec\/webespol\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/webespol\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/webespol\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":1,"href":"https:\/\/blog.espol.edu.ec\/webespol\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":55,"href":"https:\/\/blog.espol.edu.ec\/webespol\/wp-json\/wp\/v2\/posts\/54\/revisions\/55"}],"wp:attachment":[{"href":"https:\/\/blog.espol.edu.ec\/webespol\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/webespol\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/webespol\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}