Greetings.
I am considering opting $5 plan with digitalOcean.
I would like to know the following.
thanks Balaji
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
You can definitely host a Java app on a DigitalOcean. Make sure you follow the initial server setup tutorial after creating your Droplet.
See this tutorial on how to install MySQL. Once you’ve done that, you will want to create a MySQL user for your app. The hostname for the MySQL server will be localhost
as it is running on the same server.
To run your app, install Java. You can transfer your .jar file using FileZilla or any other SFTP client. The login details will be the ones you created in the initial server setup tutorial. Run the jar using this command: java -jar file_name.jar
.
To keep your app running after closing the SSH session, one option would be using the program screen.
Click below to sign up and get $100 of credit to try our products over 60 days!
DigitalOcean offer a VPS, so it’s essentially like your own server, where you can install one of the allowed operating systems (CentOS, Ubuntu, FreeBSD, among other). You have to setup everything yourself, that being Java runtime, MySQL server and whatever else you wish to use. And you have to maintain and update everything.