linux jdk and tomcat configuration

jdk configuration:

1, jdk.gar.gz command: tar -xzvf jdk.gar.gz

2, cd into the folder jdk path pwd Print, copy the current path

3, vi / etc / profile modification profile, add parameters:             

                JAVA_HOME = / opt / jdk1.8.0_231 (pwd just out of the path)
                the CLASSPATH =:. $ JAVA_HOME / lib
                the PATH = $ the PATH: $ JAVA_HOME / bin

                export JAVA_HOME CLASSPATH PATH (new parameters will be submitted, after the submission of the line will disappear)

4, source / etc / profile refresh just modified profile

5, the configuration can be viewed by the success or java -version javac commands

 

tomcat configuration:

1, tomcat.gar.gz command: tar -xzvf tomcat.gar.gz

2, cd into the folder and then into the tomcat bin folder by: ./ startup.sh (the command to start the tomcat)

3, the configuration can successfully enter the corresponding ip host browser: 8080 to see if the page appears

Guess you like

Origin www.cnblogs.com/shouyaya/p/12131022.html