EC2 Environment Construction

Source: Internet
Author: User
EC2 usage
1. register an account with Amazon, enter a credit card number, and enter the verification code on the computer page.
2. Select a region to create a Linux instance (I select centos6.5 ).
3. When creating an instance, you will choose to create a new key-pair with a random name, and then download xx. PEM files (note that this file must not be lost, or you will not be able to connect to your instance later)
After the installation is completed, download the full version of putty.exe (including the full version of puttygen.exe ).
5. Open puttygen.exe, select load, find the XX. pem file that you saved, and then choose to save the private key (that is, the private option)
6. Open putty and enter [email protected] + DNS (DNS is the public DNS on your EC2 console instance). No Password is required here, you only need to save xx. PPK file.
7. There is an auth option under the SSH option. Click Open and select Brower. Find the PPK file that you saved and click open to connect to your instance.
8. After connecting to the instance, you need to install Apache, tomcat, JDK, and other files.
9. Install JDK, maybe the built-in Linux is openjdk, here is how to install the JDK Sun (http://tecadmin.net/steps-to-install-java-on-centos-5-6-or-rhel-5-6 ).
10. install Tomcat (http://tecadmin.net/steps-to-install-tomcat-server-on-centos-rhel/) after JDK installation ).
11. Linux generally comes with Apache. You can run the command to view it (rpm-Qa | grep httpd). If not, (YUM list | grep httpd ), in the list, you can install Yum (YUM install httpd ).
12. After completing the preceding steps, you will not be able to access your Apache or tomcat. If (PS-Aux | grep httpd) does not have this process, start Apache (Service httpd start)
13. To access the above Apache welcome page, you need to select your own instance in security groups, right-click and choose edit inbound rules to add Port 80 of HTTP, of course, you can also add Tomcat port 8080.
14. After port 80 is added, your Apache will be able to access the welcome page. If you open the Tomcat port 8080, but you cannot access it, it is normal, because you still need to open the port 8080 in iptables, otherwise you will not be able to access it.
15. enable port 8080 in iptables, vi etc/sysconfig/iptables (-A input-M state -- state new-m tcp-p tcp -- dport 8080-J accept), save and exit, restart iptables (/etc/init. d/iptables restart.


Frequently Used viewing software installation location
Rpm-QL Subversion
SVN initialization structure directory
SVN mkdir file: // home/project/SVN/myrepo/{trunk, tags, branches}-M "Initial directory structure"


SVN create initial repository Structure


Htpasswd-CM/etc/SVN-auth-conf yourusername


Htpasswd-M/etc/SVN-auth-conf anotherusername


I hope it will be available in the future. I would like to thank Amazon for providing free services. However, it is recommended that you do not have to pay for a paid project.

Note: To delete an EC2 instance, stop it first, and delete non-default and key pair in security groups. The instance disappears in a few hours,

He will not disappear immediately, so don't worry.

EC2 Environment Construction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.