By TheJavaDevv2
I have just created a droplet, installed jre, jkd and maven. I uploaded a SPRING project that was running perfectly on my machine in Idea editor, but when I access <ip>:8080, it loads some long time and then browser returns “server not responding”. Why is that?
All that I did was just fetch from GitHub. Also, this is how I am starting the app:
mvn clean install java -Xverify:none -Djava.security.egd=file:/dev/./urandom -jar target/app-0.0.1-SNAPSHOT.jar
Also, to permanently deploy the app, all that I do is add an & at the end of the second command. Is it fine? Do you recommend that?
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!
Hi there @TheJavaDevv2,
If you have a firewall like ufw make sure to open port 8080:
ufw allow 8080
Also I could suggest using netstat to check if the application is actually listening on 0.0.0.0:8080 rather than 127.0.0.1:8080 as if you want it to be accessible from the outside world, it has to be 0.0.0.0:8080:
netstat -plant | grep 8080
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.