From a Java app, I'd like to programmatically:
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.