urbanopk.blogg.se

Install apache tomcat 8 on windows
Install apache tomcat 8 on windows







install apache tomcat 8 on windows

Now navigate to /opt/tomcat from where we will update the folder ownership and permissions: # cd /opt/tomcatĪnd set group owner of /opt/tomcat to tomcat: $ sudo chgrp -R tomcat /opt/tomcat We will have to create that directory: $ sudo mkdir /opt/tomcatĪnd now we can extract the downloaded package in that new directory: $ sudo tar xzvf apache-tomcat-9.0.14.tar.gz -C /opt/tomcat -strip-components=1 The resulting value (hash) for both files should be the same.Īs earlier mentioned, we are going to install Tomcat in /opt/tomcat.

install apache tomcat 8 on windows

If you want to verify the sha512 sum of the file you can run: $ sha512sum apache-tomcat-9.0.14.tar.gz For example you can use /tmp: # cd /tmpĪnd then using wget command to download the Tomcat archive: $ wget To download that version, change your current directory to something else.

install apache tomcat 8 on windows

To download the latest available package, head to Tomcat’s download page and grab the latest version.Īt the time of writing this tutorial, the latest version of Tomcat is 9.0.14. Now we are ready to proceed next step and download Tomcat. The shell be set to /bin/false: $ sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat The home location of this user will be /opt/tomcat as this is where we are going to install Tomcat. Next we will create a tomcat user, that will be member of the tomcat group. Start by creating the tomcat group: $ sudo groupadd tomcat That is why we will create user and group tomcat that will run the service. $ sudo apt updateįor security reasons, Tomcat should be ran with a non-privileged user i.e non root. To meet that requirement, we will install OpenJDK as shown. To run Java web applications, Tomcat requires Java to be installed on the server.









Install apache tomcat 8 on windows