How can I run a pure java server on AWS? [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have registered to the free AWS plan, and I wish to run a pure java server code I have written on this machine, so I will be able to take this server's IP and use it to connect with my client.
After some searching in AWS I have found many products and features, but I still don't understand how to perform this simple task.

Create a new EC2 Instance SSH into it, install java and prerequisites.
Ensure -
Your Security Group is opened for port 22 for external internet - 0.0.0.0/0 ( or at least your IP )
Use t2.micro instance size - only that is covered under the free tier
Remember to save / store your keypair safely
Check the below links
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-instance_linux.html
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-connect-to-instance-linux.html
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-add-volume-to-instance.html
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-clean-up-your-instance.html

Related

Facing high cost of Dynamodb [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
We are using AWS dynamodb as database server and java application interacts with
this. As Mentioned over aws server pricing is too low for Free Tier account:
https://aws.amazon.com/dynamodb/pricing/.
But we are getting bill in thousands of dollar.
Is anything is missing or we need to change some configuration over aws?
For AWS Billing issue, you can contact AWS Support team.
You can reach out here https://console.aws.amazon.com/support for creating a case.
Choose Regarding as Account and Billing Support, service as Billing, category as Charge Inquiry.
They will display some list of related questions below category which will be useful for you. After creating a case, AWS Support team will reach out through Phone or Web within 24 hours.
If you are facing technical issues regarding your use case, select as Technical support to reach out for help.

alternative methods of hosting a java socket [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
In recent discussions on stackoverflow I have discovered that many/most web hosts dont allow java servers to be uploaded as they open ports and create a vulnerability in their system. Without paying extra for a java web host, how is possible to by pass this issue? Can php be used to somehow wrap the java programmed socket, or even write the socket itself in php? This is one method I have heard, but surely the host would look at this no differently than a java written socket- a security threat?
Whilst i'm on topic, how is it that paying more for a java webhost all of a sudden makes their system less vulnerable? Is this just a con to extort a little more by allowing ports to be open if your willing to pay for it, or is their something that i'm misunderstanding?
Thanks
Host it using a dedicated or VPS(virtual private server) below are 2 of my personal cloud/vps providers that i use. You can look around for more but yeah shared hosting in my opinion is for entry thing or when you don't want to have to worry about the underlying platform. If you have a understanding of linux and managing your own servers then i would go for vps all the way.
http://aws.amazon.com/ and https://www.digitalocean.com/
With regards to the PHP part of the question as I stated in my comment if you have ssh access you can run your PHP script php myscript.php though i am not to sure how you would wrap your java service.

SSL Error when trying to download a Java JDK [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I need to download a particular version of the Java JDK, so I'm going to Oracle's website to do so. When I click any of the links to begin downloading a JDK, I get the following error message from my browser:
This is probably not the site you are looking for!
You attempted to reach download.oracle.com, but instead you actually reached a server identifying itself as a248.e.akamai.net. This may be caused by a misconfiguration on the server or by something more serious. An attacker on your network could be trying to get you to visit a fake (and potentially harmful) version of download.oracle.com.
You should not proceed, especially if you have never seen this warning before for this site.
Is this normal (i.e., does Oracle use akamai.net to host its JDK distributions), or does this suggest that Oracle or I are being attacked?
Neither Sun nor Oracle has ever used third parties to host JDK downloads in my experience since 1997.

Block remote access by Java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I can connect to the Linux server i have using Putty(i have got IP, username and password). I have got java program in there, started by bat file. I would like to break existing connection and block future connections by putty, after starting the java program. Any idea if thats even possible?
You could edit your script to run the Java program with nohup to make sure the process keeps running after you log out and then kill the ssh daemon after it's been started (man page for nohup).
I don't know of a way of doing this programatically in Java, at least not in a platform independent way.

How to run Jboss 4.2.1 on IP address? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a web application deployed on the Jboss 4.2.1 server. I can access the application using following URL.
http://localhost:8080/myApp
But I am not able to run the application using my machines IP address like below.
http://192.168.0.100:8080/myApp
I want other developers on my network to be able to test the application deployed on my machine using my IP address.
What are the changes that I need to do in the JBoss configuration so that I can access Jboss using the IP address instead of the localhost?
You need to an extra flag while running. ./run.sh -b0.0.0.0

Categories

Resources