![]() chmod -R u+x,g+rx /opt/tomcat9/ Configure Tomcat Web Management Accounts Create Tomcat Web Management Userĭefine a user for the web management of Tomcat 9 Admin/Manager User interfaces. chown -R tomcat: /opt/tomcat9/Īssign tomcat the read and execution permissions on the Tomcat 9 configuration files directory. Next, you need to set the user and group ownership of Tomcat 9 directory to tomcat user. Hence, create a system user for Apache Tomcat as follows useradd -r -d /opt/tomcat9/ -s /bin/false tomcat Just like any other web server, Apache Tomcat should not be run with a privileged user. source /etc/profile.d/tomcat9.sh Create Tomcat System User Reload the environment variables set above. echo 'export JRE_HOME="/usr/lib/jvm/java-1.14.0-openjdk-amd64"' > /etc/profile.d/tomcat9.sh Once you have the path, create the environment variable. Locate the path to the installed Java version using update-java-alternatives command. Since we installed JRE, create the JRE_HOME environment as follows. echo 'export CATALINA_HOME="/opt/tomcat9"' > /etc/profile.d/tomcat9.shĭepending on the Java package installed, set JRE_HOME (if you installed JRE) or JAVA_HOME (if you installed JDK) environment variable for the Java version you have installed. Set CATALINA_HOME environment variable to point to the base path of the Tomcat installation, which in this case is, /opt/tomcat9. Various environment variables are used by the Tomcat startup scripts to prepare the command that runs Tomcat daemon. #Ubuntu install tomcat 8 license#ls /opt/tomcat9/ bin BUILDING.txt conf CONTRIBUTING.md lib LICENSE logs NOTICE README.md RELEASE-NOTES RUNNING.txt temp webapps work Set Apache Tomcat 9 Environment Variables The command above extracts the contents of apache-tomcat-9.0.36.tar.gz tarball to the installation directory, /opt/tomcat9. mkdir /opt/tomcat9 tar xzf apache-tomcat-9.0.36.tar.gz -C /opt/tomcat9 -strip-components=1 Once the download of the binary distribution is complete, installation of Apache Tomcat using the binary distribution is as easy as extracting it to some specific directory, which in this case, we used /opt/tomcat9 directory. #Ubuntu install tomcat 8 install#wget Install Apache Tomcat 9 on Ubuntu 20.04 ![]() As of this writing, Apache Tomcat 9.0.36 is the current stable release. Navigate to Apache Tomcat 9 downloads page and grab Apache Tomcat 9 binary distribution tarball. OpenJDK 64-Bit Server VM (build 14.0.1+7-Ubuntu-1ubuntu1, mixed mode, sharing) Download Apache Tomcat Binary Distribution OpenJDK Runtime Environment (build 14.0.1+7-Ubuntu-1ubuntu1) Once the installation completes, you can run the command below to verify the version. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |