Skip to content

Instantly share code, notes, and snippets.

@dantheman213
Last active September 14, 2015 17:35
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 dantheman213/fc07711b19516ad092e3 to your computer and use it in GitHub Desktop.
Save dantheman213/fc07711b19516ad092e3 to your computer and use it in GitHub Desktop.
new tomcat server installation commands for ubuntu

Setting up Tomcat on fresh Ubuntu Server

  • add-apt-repository ppa:webupd8team/java

  • apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db

  • add-apt-repository 'deb http://ftp.utexas.edu/mariadb/repo/10.1/ubuntu trusty main'

  • apt-get update; apt-get upgrade

  • apt-get install screen whois git npm nodejs-legacy nodejs oracle-java8-installer software-properties-common mariadb-server

  • groupadd tomcat

  • useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat

  • cd /opt

  • wget http://psg.mtu.edu/pub/apache/tomcat/tomcat-8/v8.0.26/bin/apache-tomcat-8.0.26.tar.gz

  • chgrp -Rv tomcat conf

  • chmod g+rwx conf/

  • chmod g+r conf/*

  • chown -Rv tomcat work/ temp/ logs/

  • chown tomcat:tomcat webapps/

  • nano /etc/init/tomcat.conf

  • initctl reload-configuration

  • initctl start tomcat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment