bash_profile, and there we will add variable JAVA_HOME: nano /.bash_profile Note: There we must enter the right path where the Java directory is located. Save the changes using the following key combination Ctrl + O and exit the editor using Ctrl + X. There we can see that initially, we have only one directory, so we press the Enter key. Now, we will edit the environment with some text editor executing the following: nano etc/environment The next step is to configure the environment variable JAVA_HOME on the computer with CentOS so that Java applications can find the correct Java version and this is ideal since Tomcat requires that the JAVA_HOME environment be configured correctly and optimize its use.īefore configuring the JAVA_HOME environment, we need to know where the Java directory is located, to do this, we will verify the Java directory with the following command: update-alternatives -config java Once this installation process is finished, we will check the Java version that we have installed by executing the following command: java -version The first step is to install Java JRE and JDK from the CentOS repository, in this case, we will install Java 1.8.11 on the server using the yum command like this: yum -y install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64 We show you in detail how you can install the Apache Tomcat in Cent0S Linux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |