http://www.excelsior-usa.com/articles/tomcat-amazon-ec2-basic.html
http://coenraets.org/blog/2011/11/set-up-an-amazon-ec2-instance-with-tomcat-and-mysql-5-minutes-tutorial/
http://blog.halcyon-solutions.com/2011/01/minimalist-no-6-deploy-your-tomcat.html (tomcat location: /var/lib/tomcat/)
sudo chmod -R 777 /var/lib/tomcat6/webapps
http://www.javacodegeeks.com/2012/05/complete-guide-to-deploy-java-web.html
http://www.cyberciti.biz/faq/mysql-change-root-password/ (IMPORTANT!!! flush privileges)
http://dev.mysql.com/doc/refman/5.0/en/creating-database.html
http://dev.mysql.com/doc/refman/5.5/en//adding-users.html
http://www.debuntu.org/how-to-create-a-mysql-database-and-set-privileges-to-a-user/
This comment has been removed by the author.
ReplyDeleteSummary
ReplyDeleteLaunch EC2 and Elastic IP
Install Tomcat7
Install MySQL
Connect to MySQL using Workbench (connection using SSH)
Run scripts to setup DB
Use WinSCP for FTP to copy WAR to tomcat (/var/lib/tomcat7/webapps)
Update DB.properties first
Use Putty to get shell
From shell, add user to MySQL and change password. Remember to flush privileges
Start tomcat