Mudanças entre as edições de "Guia de Instalação Webprotégé"
De IBICT
Linha 24: | Linha 24: | ||
− | Para criar autostart seguinte script em /etc/init.d | + | Para criar autostart seguinte script em /etc/init.d: |
'''<pre>sudo vi /etc/init.d/tomcat7</pre>''' | '''<pre>sudo vi /etc/init.d/tomcat7</pre>''' | ||
+ | |||
+ | Cole o seguinte: | ||
+ | |||
+ | '''<pre># Tomcat auto-start | ||
+ | # | ||
+ | # Descrição: Auto-tomcat inicia 7 | ||
+ | # Processname: tomcat7 | ||
+ | # Pidfile: /var/run/tomcat.pid | ||
+ | |||
+ | export JAVA_HOME = / usr / lib / jvm / java-6-sol | ||
+ | |||
+ | caso $ 1 em | ||
+ | iniciar) | ||
+ | sh /usr/local/tomcat7/bin/startup.sh | ||
+ | ;; | ||
+ | Pare) | ||
+ | sh /usr/local/tomcat7/bin/shutdown.sh | ||
+ | ;; | ||
+ | reiniciar) | ||
+ | sh /usr/local/tomcat7/bin/shutdown.sh | ||
+ | sh /usr/local/tomcat7/bin/startup.sh | ||
+ | ;; | ||
+ | esac | ||
+ | exit 0</pre>''' |
Edição das 11h56min de 25 de junho de 2015
Pré-requisitos
Tudo que você precisa é:
- Tomcat
- mongoDB
- arquivo webprotege.war
- JDK 6
1- Instalando o tomcat
Depois de ter instalado um JDK 6, em seguida, faça o seguinte etapas para instalar o Tomcat:
Download do tomcat:
wget http://apache.dataphone.se/tomcat/tomcat-7/v7.0.12/bin/apache-tomcat-7.0.12.tar.gz
Descompactar arquivo:
tar xvfz apache-tomcat-7.0.12.tar.gz sudo mv apache-tomcat-7.0.12 /usr/local/tomcat7
Para criar autostart seguinte script em /etc/init.d:
sudo vi /etc/init.d/tomcat7
Cole o seguinte:
# Tomcat auto-start # # Descrição: Auto-tomcat inicia 7 # Processname: tomcat7 # Pidfile: /var/run/tomcat.pid export JAVA_HOME = / usr / lib / jvm / java-6-sol caso $ 1 em iniciar) sh /usr/local/tomcat7/bin/startup.sh ;; Pare) sh /usr/local/tomcat7/bin/shutdown.sh ;; reiniciar) sh /usr/local/tomcat7/bin/shutdown.sh sh /usr/local/tomcat7/bin/startup.sh ;; esac exit 0