I am hoping someone can tell me how do I set up the server
Same way you run it on your local computer. Just... run it. ssh into your EC2 server as normal and run java -jar yourapp.jar
. There's nothing magical going on.
Also when it is set up what do I replace localhost with?
The IP address of your server, which is listed in the AWS console.
Note that you'll need to configure the security group that your AWS instance is in, and open up port 30000.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…