Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thanks!!! IT WORKS!!!
Obs.: You can access the server at [droplet-ip]:8080/ .It’s not at localhost:8080/
Droplet IP refers to your server’s IP address. DigitalOcean servers are called Droplets.
This is the extension to where you place your tomcat file. It is different depending on where you choose to install it.
Thank you for the notes. Could you explain why this tutorial did not just use apt-get to install the tomcat7 package? Also, how can we setup tomcat to auto start on server reboot?
Thanks!
I used the “sudo apt-get install tomcat7”, and it installed tomcat to /usr/share/tomcat7 It also installed the openjdk version of Java. I did have to edit the .bashrc to add the 2 settings. I also needed to set CATALINA_OUT=/var/log/tomcat7/catalina.out The problem is that tomcat then complains it doesn’t have permission to write there. How do I change the permissions on the /var/log/tomcat7 directory?
I used the “sudo apt-get install tomcat6”, and it installed tomcat to /usr/share/tomcat6 There was already installed an OpenJdk IcedTea6 1.12.3 java version “1.6.0_27” When I did startup.sh - I had the same response touch: cannot touch `/usr/share/tomcat6/logs/catalina.out’: No such file or directory /usr/share/tomcat6/bin/catalina.sh: 375: /usr/share/tomcat6/bin/catalina.sh: cannot create /usr/share/tomcat6/logs/catalina.out: Directory nonexistent
However, trying <droplet_ip>:8080 I got “It worked” for tomcat - so something is coming up. So creating and fixing the sudo mkdir /usr/share/tomcat6/logs sudo chown user:user /usr/share/tomcat6/logs Allowed me to cat /usr/share/tomcat6/logs/catalina.out and a few other directories needed creating and populating which got me into more issues. Then <droplet_ip>:8080 didn’t even respond.
Seems to me that the basic configuration doesn’t pull in a working demo - and I’m going back to thinking about it. I do have a working/production tomcat6 environment on another virtual machine (that some one else setup), and got a version up and going on a local Ubuntu 11.x some time ago - so going to figure out what I did in those environments.
Hi! I have to install Tomcat in order to run my WAR file. I have installed it using “sudo apt-get install tomcat7”. Because of the posts above I have discovered the path where it has been installed is: “/usr/share/tomcat7” I have added to “sudo nano ~/.bashrc” the 2 lines you specify. When I try to run the “$CATALINA_HOME/bin/startup.sh” command it tells me: “/home/MYUSER/usr/share/tomcat7/bin/startup.sh: No such file or directory” It adds the “/home/MYUSER/” string to the path and I cannot execute the startup.sh, but for some reason if write DROPLET_IP:8080 on my browser the tomcat page appears and it seems to work. Can you help me with this please? Thanks in advance.