Install Java, Tomcat

Install Java

1, create a new folder in java usr folder

2, the jdk.tar.gz of java java development kit to extract the folder below

3, the configuration / etc / profile environment

JAVA_HOME=/usr/java/jdk1.8
CLASSPATH=$JAVA_HOME/lib
PATH=$PATH:$JAVA_HOME/bin
export PATH JAVA_HOME CLASSPATH

4, source / etc / profile so that configuration file to take effect

Tomcat installation

1, download the file tar.gz tomcat package.

2, to extract the corresponding folder, the folder into the bin,. / Startup.sh start. Remember to turn off the firewall.

Guess you like

Origin www.cnblogs.com/elian91/p/11229388.html