Joke Collection Website - Public benefit messages - How to configure java web environment on Alibaba Cloud Centos7.0

How to configure java web environment on Alibaba Cloud Centos7.0

Use xshell or SecureCRT to log in to Alibaba Cloud host, install jdk and tomcat with rpm command, and then configure java environment.

JAVA _ HOME =/usr/JAVA/JDK 1 . 8 . 0 _ 60

JRE _ HOME =/usr/Java/JDK 1 . 8 . 0 _ 60/JRE

PATH = $ PATH:$ JAVA _ HOME/bin:$ JRE _ HOME/bin

class path =:$ JAVA _ HOME/lib/dt . jar:$ JAVA _ HOME/lib/tools . jar:$ JRE _ HOME/lib

Export JAVA_HOME JRE_HOME path classpath.

Just start tomcat