Paste the following contents into the file: description "Tomcat"Įnv JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jreĮnv JAVA_OPTS="=true =file:/dev/./urandom"Įnv MEMORY="-Xms512M -Xmx1024M -server -XX:+UseParallelGC"Īfter saving this file, execute: sudo initctl reload-configuration You can find that using the following command: update-alternatives -config javaĪfter doing that, create the script: vi /etc/init/nf In order to do this, you will need to set the JAVA_HOME variable. We will now need to create a script in order to run Tomcat as a service. Tar xvf apache-tomcat-8*tar.gz -C /opt/tomcat -strip-components=1 First, we're going to download the files: cd Useradd -s /bin/false -g tomcat -d /opt/tomcat tomcatĪfter confirming that the prerequisites have successfully been installed, we can begin the Tomcat installation process. Naturally, this can be anything you want. For easy management, we'll call it "tomcat". We will need a non-root user to run the Tomcat web server under. Step 1: Installing prerequisitesįirst off, we need to update all software on our server and install a number of prerequisites: apt-get updateĪfter you've done that, install the JDK: apt-get install default-jdk In this guide, we'll see how we can install Apache Tomcat on an Ubuntu 14.04 server. Apache Tomcat, created by the same organization as the popular Apache web server, is a web server that allows you to serve Java webpages to visitors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |