How to install jdk on linux

linux configuration


1. JDK installation


1. JDK needs to match how many bits of the server, and then download the corresponding jdk


2. Basic commands for linux installation of jdk


1) Unzip the jdk == "tar -zvxf file name.bin


2 ) Configuration of environment variables == "vi /etc/profile


and then add it at the bottom:


 JAVA_HOME=/usr/local/java/jdk1.6.0_01


 PATH=$JAVA_HOME/bin:$PATH


save Esc+":" and then wq save Configuration completed


3) Test == "Java -version


The following results are shown below to prove that the configuration is successful:


java version "jdk1.6.0_01"


Java(TM) 2 Runtime Environment, Standard Edition (build jdk1.6.0_01)


Java HotSpot(TM ) Client VM (build jdk1.6.0_01, mixed mode) Second , tomcat


installation and commands Inside bin=="cd /usr/local/tomcat/server/bin 2) Start the tomcat command=="./startup.sh














3) Close the tomcat command ==> ./shutdown.sh













Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325623389&siteId=291194637