seinecle
seinecle

Reputation: 10798

Install Tomcat remotely (on a digital ocean server?)

From a Java app, I'd like to programmatically:

  1. start a digital ocean server [EDIT: on LINUX debian]
  2. install Tomcat on this server [EDIT: this step must be executed remotely, from my Java app]
  3. upload an existing war file to the server and deploy it on Tomcat

I have found all details on SO on how to do 1. an 3., but not 2. ?

Upvotes: 1

Views: 726

Answers (1)

Farvardin
Farvardin

Reputation: 5424

if you have ssh access to remote server, you can get a remote shell in you java app using java secure channel lib and run appropriate command to install tomcat (may be : sudo apt-get install tomcat7). example for ssh connection from java could be found here.

Upvotes: 3

Related Questions