Como instalar o servidor Tomcat no Linux Mint 17.1?

2

Aqui é onde eu estou até agora com o meu download depois que eu fiquei no meio do caminho. Então eu fui ao site, baixei a versão mais recente do Tomcat e extraí-lo em meus downloads. Eu tenho tentado adicionar CATALINA_HOME a JAVA_HOME e isso não está funcionando. Eu procurei por tutoriais, mas nada parece funcionar. Eu não sou bem versado com o vim.

Então, para onde vou daqui?

It works !

If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!

This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat7/webapps/ROOT/index.html

Tomcat7 veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in /usr/share/tomcat7 and CATALINA_BASE in /var/lib/tomcat7, following the rules from /usr/share/doc/tomcat7-common/RUNNING.txt.gz.

You might consider installing the following packages, if you haven't already done so:

tomcat7-docs: This package installs a web application that allows to browse the Tomcat 7 documentation locally. Once installed, you can access it by clicking here.

tomcat7-examples: This package installs a web application that allows to access the Tomcat 7 Servlet and JSP examples. Once installed, you can access it by clicking here.

tomcat7-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp.

NOTE: For security reasons, using the manager webapp is restricted to users with role "manager-gui". The host-manager webapp is restricted to users with role "admin-gui". Users are defined in /etc/tomcat7/tomcat-users.xml.

    
por Madonah Syombua 09.06.2015 / 05:15

1 resposta

1

A solução mais simples no Mint é instalar o pacote tomcat7 , se o Tomcat 7 for bom o suficiente:

sudo apt-get install tomcat7

Uma vez feito isso, você pode soltar suas webapps em /var/lib/tomcat7/webapps e elas serão implantadas automaticamente. Você também pode instalar o pacote tomcat7-admin e configurar os usuários conforme descrito na documentação que você cita, e você obterá os aplicativos de administração do Tomcat.

Se você realmente precisa do Tomcat 8, você pode baixá-lo do Debian ou do Ubuntu e instalá-lo no Mint:

wget https://launchpad.net/ubuntu/+archive/primary/+files/tomcat8_8.0.23-1_all.deb https://launchpad.net/ubuntu/+archive/primary/+files/tomcat8-common_8.0.23-1_all.deb https://launchpad.net/ubuntu/+archive/primary/+files/libtomcat8-java_8.0.23-1_all.deb https://launchpad.net/ubuntu/+archive/primary/+files/libservlet3.1-java_8.0.23-1_all.deb
sudo dpkg -i tomcat8_8.0.23-1_all.deb tomcat8-common_8.0.23-1_all.deb libtomcat8-java_8.0.23-1_all.deb libservlet3.1-java_8.0.23-1_all.deb

Com as aplicações web do Tomcat 8, vá em /var/lib/tomcat8/webapps .

    
por 09.06.2015 / 15:36