The most interesting thing in this knowledge base, Installing Tomcat.Īs a important thing we to know here is, installing Apache Tomcat under the user tomcat. You will get the output as below, ~]# echo ~]# Make sure there is no error while reloading the bash file, Finally check the JAVA_HOME environment variable. Now, we need to reload the bash profile file. bash_profile file and add the JAVA_HOME variable as well # nano ~/.bash_profileĮxport JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.7_3.x86_64/jre/bin/java # nano /etc/environmentĪdd the JAVA_HOME environment variable by adding Now, we can proceed with editing the environment file. To check the Java directory # sudo update-alternatives -config java In the first step, we have installed Java, and now we need to configure the JAVA_HOME environment variable on the CentOS server so that Java applications can find the right Java version and also the Tomcat requires the JAVA_HOME environment to be setup properly.īefore, configuring the JAVA_HOME environment, we need to know where the Java directory is. OpenJDK 64-Bit Server VM (build 25.131-b12, mixed ~]# Step 2 – Configuring the Java Home Environment OpenJDK Runtime Environment (build 1.8.0_131-b12) You will get the below result ~]# java -version After completing the installation check the Java version. It will take some time, wait until the installation finished. We will install Java 1.8.13 on the server. Prerequisites for installingĪs a first thing, we need to install Java JRE and JDK from the CentOS repository. Tomcat provides an HTTP Web Server for Java applications with support for HTTP/2, OpenSSL for JSSE and TLS virtual hosting. Beside Java Servlets, Tomcat implements several Java server technologies including JavaServer Pages (JSP), Java Expression Language, and Java WebSocket. Yes, Lets see about Apache Tomcat, an open source Java Servlet implementation developed by the Apache Software Foundation. This tutorial shows, how you can install Apache Tomcat 8.5 on CentOS 7.3.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |