# The following are the notes taken while setting up system-based Tomcat7 on Ubuntu 14.4LTS ###### # Following based on # http://coenraets.org/blog/2011/11/set-up-an-amazon-ec2-instance-with-tomcat-and-mysql-5-minutes-tutorial/ # 1. Setup Tomcat sudo apt-get install tomcat7 cp -i "$GSDL3SRCHOME/lib/jni/*.jar" /usr/share/tomcat7/lib/. cp -i "$GSDL3SRCHOME/lib/jni/*.so" /usr/lib/jni/. # 2. Obtain fixed domain name through Elastic IP #The public DNS address changes when you restart your instance. To get a permanent IP address, click Elastic IPs in the AWS Management Console (left navigation bar), allocate a new IP address and associate it with your instance. # 3. Set up custom TCP port in Seurity Group in AWS EC2 interfae # (pick the group your instance VM is associated with) # 4. Start up your tomcat service sudo service tomcat7 start ####### # To run on port 80 ... # Notes from # http://stackoverflow.com/questions/4756039/how-to-change-the-port-of-tomcat-from-8080-to-80 #1. Change port from 8080 to 80 # sudo vi /var/lib/tomcat7/conf/server.xml # # 2. Edit tomcat7 file # sudo vi /etc/default/tomcat7 # finishing with sudo touch /etc/authbind/byport/80 sudo chmod 500 /etc/authbind/byport/80 sudo chown tomcat7 /etc/authbind/byport/80