...
Code Block |
---|
sudo groupadd tomcat sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat |
Download and Install TomcatÂ
...
Excerpt | ||||||
---|---|---|---|---|---|---|
Find the latest versionGo to the tomcat downloads page, find the latest Binary Distributions section, then the Core sub-heading, and copy the tar.gz link. Download TomcatOn the linux server, goto the tmp directory then use curl to download from the link that you found above. E.g.
Install TomcatUnpack the tomcat tar.gz file into /opt/tomcat.
This will have created the tomcat folders (conf, logs, webapps etc.) directly under /opt/tomcat. Now to set the file ownership and permissions.
|
Create a service wrapper
This stage creates a wrapper which allows tomcat to be managed as a service; this allows tomcat to be stopped and started reliably, and ensures that the running environment (e.g. the starting directory) is well defined.
...