Skip to content

Instantly share code, notes, and snippets.

@AnanthaRajuC
Last active November 30, 2015 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnanthaRajuC/5e4dacab9c957bc27e73 to your computer and use it in GitHub Desktop.
Save AnanthaRajuC/5e4dacab9c957bc27e73 to your computer and use it in GitHub Desktop.
Amazon Web Services - Apache Tomcat, MySQL Database - Start/Stop Services
Amazon Web Services - Apache Tomcat, MySQL Database - Start/Stop Services
-------------------------------------------------------------------------
#Install Tomcat
sudo yum install tomcat6 tomcat6-webapps
#Start Tomcat
sudo service tomcat6 start
#Stop Tomcat:
sudo service tomcat6 stop
------------------------------------------------------------------------
#Install MySQL
sudo yum install mysql-server
#Start MySQL
sudo service mysqld start
#Stop MySQL
sudo service mysqld stop
------------------------------------------------------------------------
#Default Amazon Web Services username
ec2-user
#Change user to root
sudo su -
#Take ownership of folder
sudo chown -R -v ec2-user /folderPath
----------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment