Configuração Linux
Abrangência ERP 11
Definição da variável de ambiente JAVA_HOME
Abrangência |
---|
ERP 11 |
- Exporte a variável de ambiente JAVA_HOME.
export JAVA_HOME=/usr/java/jdk1.6.0_23
Definição da variável de ambiente JAVA_OPTS
Opcionalmente, esta variável pode ser definida através do comando export no início do arquivo catalina.sh.
- Exporte a variável de ambiente JAVA_OPTS.
export JAVA_OPTS=-Djava.library.path=/totvs/native -Dfile.encoding=ISO-8859-1
Instalação do Apache TomcatTM como serviço
Há diversos modos de configurar a inicialização do Apache TomcatTM durante o boot do sistema operacional e nesse documento sugerimos que o mesmo seja configurado através de services.
Script de inicialização (exemplo):
# This is the init script for starting up the# Jakarta Tomcat server## chkconfig: 345 91 10# description: Starts and stops the Tomcat daemon.# Source function library.. /etc/rc.d/init.d/functions# Get config.. /etc/sysconfig/network# Check that networking is up.[ "${NETWORKING}" = "no" ] && exit 0startup=/totvs/tomcat/bin/startup.shshutdown=/totvs/tomcat/bin/shutdown.shunset JAVA_HOMEexport CATALINA_HOME=/totvs/tomcatexport JRE_HOME=/usr/java/jdk1.6.0_22export BASEDIR=$CATALINA_HOME#export PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/binstart(){ echo -n $"Starting Tomcat service: " #daemon -c $startup RETVAL=$? echo}stop(){ action $"Stopping Tomcat service: " $shutdown RETVAL=$? echo}restart(){ stop start}# See how we were called.case "$1" instart) start ;;stop) stop ;;status) # This doesn't work ;) status tomcat ;;restart) restart ;;*) echo $"Usage: $0 {start|stop|status|restart}" exit 1esacexit 0
Créditos |
---|
Apache TomcatTM Apache Tomcat is either registered trademark or trademark of the Apache Software Foundation in the United States and/or other countries, and are used with permission as of 2011. The Apache Software Foundation has no affiliation with and does not endorse, or review the materials provided at this event, which is managed by TOTVS S/A. JavaTM Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. |
Veja também
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas