Install JDK, Tomcat under Linux

Source: Internet
Author: User

1. Download JDK, tomcat and upload to server
2, Installation jdk-7u79-linux-x64.rpm
[Email protected] ~]# cd/testdata/huangwenjiao/
[Email protected] huangwenjiao]# RPM-IVH jdk-7u79-linux-x64.rpm
Preparing ... ########################################### [100%]
Package jdk-2000:1.7.0_79-fcs.x86_64 is already installed
3. Configure Environment variables
Page forward: ctrl+f
Page Backward: ctrl+b
Java_home=/testdata/huangwenjiao/jdk1.7.0_03
Jre_home=/testdata/huangwenjiao/jdk1.7.0_03/jre
Java_bin=/testdata/huangwenjiao/jdk1.7.0_03/bin
#export java_bin= $JAVA _home$/bin
Path= $PATH: $JAVA _bin
Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export Java_home jre_home java_bin PATH Classpat

catalina_home=/usr/local/apache-tomcat-7.0.54/

Save exit
[Email protected] etc]# Source/etc/profile
To see if the environment variable is configured successfully
[Email protected] etc]# java-version
4, decompression installation apache-tomcat-7.0.54.tar.gz
Decompression: [[email protected] huangwenjiao]# TAR-XZF apache-tomcat-7.0.54.tar.gz
Move to/usr/local/:[[email protected] huangwenjiao]# mv apache-tomcat-7.0.54/usr/local/
[Email protected] local]# ln-s/usr/local/apache-tomcat-7.0.54//usr/local/tomcat/
[Email protected] huangwenjiao]# cd/usr/local/
[Email protected] local]# CD tomcat/bin/
[Email protected] bin]# vim catalina.sh
Last line added: talina_home=/usr/local/apache-tomcat-7.0.54/
Add in 85 Rows:
Java_opts= "-server-xms800m-xmx800m-xx:permsize=64m-xx:maxnewsize=256m-xx:maxpermsize=128m-djava.awt.headless= True "
[Email protected] ~]# cd/usr/local/tomcat/bin/
[Email protected] bin]#./startup.sh
Using catalina_base:/usr/local/tomcat
Using Catalina_home:/usr/local/tomcat
Using Catalina_tmpdir:/usr/local/tomcat/temp
Using Jre_home:/testdata/huangwenjiao/jdk1.7.0_03/jre
Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.

Install JDK, Tomcat under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.