Hosting Java WebService on live server

I am new to Java Web services and need help to understand how to host web services on a web server

I successfully created a web service. I point to "localhost" in the home network to hit the service to get a response Now I want to push the service over the Internet so that the web service becomes public and clients can start using it But I'm not sure about hosting and how it happened Although I searched online content, I couldn't get a clear step-by-step guide Someone can help me plz thank you

Here are the details:

Any focus on Amazon Web services or converting my home computer into a server will be very useful

Solution

I do not recommend that you use your home computer as a web server The following are the steps to start and run a Java Web application to the Internet

>Buy a domain name from the Registrar > find a host provider to provide you with some kind of Linux VM (CentOS, Debian, RHEL, etc.) Lowend@R_116_2419 @There are some cheap ones AWS is more expensive, but you will get the same thing > modify your registered DNS and point to the IP address of the VM you just rented. > SSH to your VM and install all dependencies of Java and application servers (tomcat, JBoss, netty, etc.) through the command line > by default, most of these servers run on port 8080, so you need to find a way to reroute requests from 80 to 8080 (do not run the server directly on 80) It's best to let Apache run 8080 and forward the request to 8080 (depending on the server you're running) > deploy your application

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>