...
This guide covers downloading and installing Tomcat 8 on an Ubuntu Linux 9 on a linux server.
Prerequisites
...
You can login as a non-root user with sudo access.
You have installed Java, with the required settings.
Instructions
Step 1 Create Tomcat user
Warning |
---|
Do not run Tomcat as root as this constitutes a security risk. |
...
Code Block |
---|
sudo groupadd tomcat sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat |
Step 2 Download and
...
install Tomcat
Excerpt |
---|
|
...
|
...
|
Download Tomcat
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
Step 3 Create a service wrapper
This stage step creates a wrapper which that allows tomcat Tomcat to be managed as a service; this allows tomcat to be stopped and started . Using a service means you can stop and start Tomcat reliably, and ensures that the running environment (e.g. the starting directory) is well defined.
Specifically, these These instructions create a systemd
service.
First, create a service definition file:
...