简体   繁体   中英

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. ?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM