When you run this command, you’ll get this as a result: #-> java version "1.7.0_95" Now, how to check if the above setup is done or not? The first one is Open JDK 7, for its setup run this command: $ sudo apt-get install openjdk-7-jdk We’ll learn, now, how to install multiple versions of JDKs and how to switch between them. When the source is added, update by running this command: $ sudo apt-get update To add apt-get source, please run this command: $ sudo -E add-apt-repository ppa:openjdk-r/ppa Therefore, we need to add an apt-get source from where JDK is installed. When the system is back on, proceed through the further process of setting up of the JDKs and the Tomcat servers:įrom now on, our preferred JDK would be Open JDK because most of the beanstalk installation as well as Heroku prefers Open JDK. We’ll have to wait for a couple of minutes then it will restart. (You can refer to the previous tutorial on basic server setup) Post that, we will run through the basic server setup. Now, I used to do the SSH login to the server. Now, review if Elastic IP Address is present. Now, you need to associate the Elastic IP with our Java setup server. So, while it launches I will provision for it.Ĭheck if your instance is working. It’s OK, if you might want to create a new set of key pair.įor this instance, we require Elastic IP address. Here, we are going to use an existing key pair. When you do that, a dialog box would pop up giving you an option of selecting an existing key pair or creating a new key pair. Step 7: Review Instance Launch and if it looks fine then proceed. We will create a new one and will give it a name and a description:ĭescription: Security Group created for Java setup Step 6: Configure Security Group, In this, you can either use/select the existing security group or can create a new security group. Step 5: Tag Instance: Enter value as “Javasetup” Step 4: For storage, use 25 GB, General purpose SSD Step 3: Enable Protection against accidental termination, other than that, keep other settings as it is Step 2: Use t2.small as Java generally requires more RAM ![]() Step 1: Select Ubuntu 16.04 (64 bit) on your EC2 dashboard Now, we are going to do step by step of basic server setup: We need to go to the EC2 dashboard to launch instance. Please note that in this tutorial, we are going to do some basic server setup (which is already been explained over last published tutorial, please read How To Launch An AWS EC2 Server And Set Up Ubuntu 16.04 On It ).įirstly, we would be creating a server by logging into an EC2 account. In this tutorial, we will learn how to create an EC2 server on the AWS Cloud and setup Java and Tomcat on that server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |