Linux builds Java Runtime environment
"The content described in this document applies to common Java environment deployments such as company testing/production"
One: Prepare for the environment before deployment:
1.1 Related software and systems
System Requirements: Centos 6.0 (above) (64-bit)
Related middleware: jdk1.7.0_71, apache-tomcat7.0
1.2 Download related software such as JDK and Tomcat
Download jdk (version jdk1.7.0_71)
wget--no-check-certificate--no-cookies--header "Cookie:oraclelicense=accept-securebackup-cookie"/HTTP/ Download.oracle.com/otn-pub/java/jdk/7u71-b14/jdk-7u71-linux-x64.tar.gz
Download Apache-tomcat (version 7.0.64)
wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.64/bin/apache-tomcat-7.0.64.tar.gz
Two: Start deploying the Java Environment
2. 1 deployment JDK to support the Java environment (note that all downloads are uniformly placed in the/root root directory)
< unzip---JDK package--->
CD ~
TAR-ZXF jdk-7u71-linux-x64.tar.gz-c/usr/local/
<---Add a JDK environment variable--->
Vim/etc/profile//Edit System environment variables
Java_home=/usr/local/jdk1.7.0_71
Path= $JAVA _home/bin: $PATH
Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export Java_home
Export PATH
Export CLASSPATH
2.2 Deployment of Tomcat
CD ~
TAR-ZXF apache-tomcat-7.0.64.tar.gz-c/usr/local/
Cd/usr/local
MV apache-tomcat-7.0.64 Tomcat80
Three: Start the Java environment
Cd/usr/local/tomcat80
Note: The default access port for Tomcat is: 8080
At this point, the Java environment is basically OK, close the relevant firewall, you can access to the Tomcat's homepage via the ip+ port, as follows
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/E2/wKioL1YJE82BCte4AAVAlwsX0KM675.jpg "title=" capture. PNG "width=" "height=" 407 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:700PX;HEIGHT:407PX; "alt=" Wkiol1yje82bcte4aavalwsx0km675.jpg "/>
This article is from the "Rookie Growth" blog, please be sure to keep this source http://blief.blog.51cto.com/6170059/1698913
Centos builds Java operating environment