Last active
October 31, 2015 12:35
-
-
Save shotaK/8519c72abd691b222f73 to your computer and use it in GitHub Desktop.
Tomcat
This file contains hidden or 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
| // Add CATALINA_HOME env variable | |
| export CATALINA_HOME="/home/scabbard/programs/apache-tomcat-8.0.28" | |
| // Make it permanent by adding the command to this file | |
| sudo nano ~/.bashrc |
This file contains hidden or 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
| // Tomcat users file | |
| $CATALINA_HOME/conf/tomcat-users.xml | |
| // Add tomcat user admin with password | |
| <tomcat-users> | |
| <role rolename="admin"/> | |
| <user username="admin" password="password" roles="standard,manager-gui,manager-script,manager-jmx,manager-status,admin"/> | |
| </tomcat-users> |
This file contains hidden or 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
| // Start tomcat | |
| $CATALINA_HOME/bin/startup.sh | |
| // stop tomcat | |
| $CATALINA_HOME/bin/shutdown.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment