Logged in as root, I unpacked Tomcat into
/usr/local/, then created a link from
tomcat to the
As a normal user, to run your own Tomcat instance do the following:
Choose a directory in your personal space to run your Tomcat instance. I chose
/home/jurn/tomcat. Create this directory.
Copy the following directories from the shared tomcat instance to your local directory.
$ cd /usr/local/tomcat $ cp -R conf/ logs/ webapps/ work/ temp/ /home/jurn/tomcat/
- Setup the following environment variables:
CATALINA_HOME. This should be set to
CATALINA_BASE. This should be set to
JAVA_HOME. This should be set to your favourite Java installation.
JAVA_OPTS. jvm opts
You can now use
/usr/local/tomcat/bin/startup.sh to start tomcat, and
/usr/local/tomcat/bin/shutdown.sh to shutdown tomcat.
Usually installed in
You should edit
conf/tomcat-users.xml before starting this. Make sure you add a user with the role
- For more detailed notes please visit the official Apache Tomcat site