Last active
November 30, 2015 10:05
-
-
Save AnanthaRajuC/5e4dacab9c957bc27e73 to your computer and use it in GitHub Desktop.
Amazon Web Services - Apache Tomcat, MySQL Database - Start/Stop Services
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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