Joke Collection Website - Public benefit messages - How to configure javaweb environment for Alibaba Cloud server?

How to configure javaweb environment for Alibaba Cloud server?

Is it a linux server?

-install the java environment.

Download the installation package in jdk bin format.

Rpm -ivh is installed with the name of the installation package.

Configure environment variables (Java_home address is modified according to the actual situation)

Add under /etc/profile.

# Set the Java environment

JAVA _ HOME =/usr/share/JDK 1 . 6 . 0 _ 43

PATH=$JAVA_HOME/bin:$PATH

Classpath =. :$ JAVA _ HOME/lib/dt . jar:$ JAVA _ HOME/lib/tools . jar

Export JAVA_HOME

Export path

Export classpath

-install Tomcat.

Download tomcat installation package and unzip it.