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