Skip to content

Instantly share code, notes, and snippets.

@shotaK
Last active October 31, 2015 12:35
Show Gist options
  • Select an option

  • Save shotaK/8519c72abd691b222f73 to your computer and use it in GitHub Desktop.

Select an option

Save shotaK/8519c72abd691b222f73 to your computer and use it in GitHub Desktop.
Tomcat
// 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
// 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>
// 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