Linux under Installation configuration Jdk+tomcat+mysql test environment

Source: Internet
Author: User

1. System environment


CentOS6.5


2, download Jdk,tomcat software package, the official website can be downloaded, you can also use the command line to download

MySQL installation with Yum


3. Linux installation JDK

1) Download JDK

#wget http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz? authparam=1434620688_1831ed06c98894056108fddcb5c59167

2) After downloading, I find the name is a bit long, modify

#mv jdk-8u45-linux-x64.tar.gz\? authparam\=1434620688_1831ed06c98894056108fddcb5c59167 jdk-8u45-linux-x64.tar.gz

3) Unzip to/usr/local/

#tar-ZXVF jdk-8u45-linux-x64.tar.gz-c/usr/local/

4) Setting the Java environment variable

Open/etc/profile Add

#vim/etc/profile

#set Java Environment

Java_home=/usr/local/jdk1.8.0_45

Classpath=.: $JAVA _home/lib/tools.jar

Path= $JAVA _home/bin: $PATH

Export Java_home CLASSPATH PATH

5) Verify, enter Java

#java

Usage:java [-options] class [args ...]

(to execute a class)

or Java [-options]-jar jarfile [args ...]

(To execute a jar file)

Where options include:

-D32 Use a 32-bit data model if available

-D64 Use a 64-bit data model if available

-server To select the "Server" VM

The default VM is server,

Because you is running on a server-class machine.

4. Install Tomcat

1) Download Tomcat

#wget http://apache.fayea.com/tomcat/tomcat-6/v6.0.44/bin/apache-tomcat-6.0.44.tar.gz

2) Unzip

#tar-ZXVF apache-tomcat-6.0.44.tar.gz-c/usr/local/

3) Start Tomcat

# CD apache-tomcat-6.0.44/

#./startup.sh

4) Access Tomcat

http://IP:8080


This article is from the "Micro Swift Double Fly" blog, please make sure to keep this source http://haowenliu.blog.51cto.com/5528051/1663318

Linux under Installation configuration Jdk+tomcat+mysql test environment

Related Article

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.