Home > Database > Mysql Tutorial > Oracle Enterprise Linux 64

Oracle Enterprise Linux 64

WBOY
Release: 2016-06-07 15:02:43
Original
1709 people have browsed it

测试环境:VMware Workstation v9.0.2软件中安装好Oracle Enterprise Linux 5.864-bit虚拟机 安装软件:jdk-7u40-linux-x64.rpm+apache-tomcat-7.0.53.tar.gz 安装说明:从官网下载jdk-7u40-linux-x64.rpm和apache-tomcat-7.0.53.tar.gz到Linux虚拟机中的/u02目

测试环境:VMware Workstation v9.0.2软件中安装好Oracle Enterprise Linux 5.8 64-bit虚拟机

安装软件:jdk-7u40-linux-x64.rpm+apache-tomcat-7.0.53.tar.gz

安装说明:从官网下载jdk-7u40-linux-x64.rpm和apache-tomcat-7.0.53.tar.gz到Linux虚拟机中的/u02目录下

安装步骤:打开VMware虚拟机,使用root用户登录Linux虚拟机,进入系统后,点桌面右键,选择打开终端,执行下面的命令即可。

一、安装JDK

rpm -ivh /u02/jdk-7u40-linux-x64.rpm

java -version

cd /

二、安装Tomcat

rm -rf /usr/tomcat7
cd /usr
ls
cd /

tar zxvf /u02/apache-tomcat-7.0.53.tar.gz

cd /root/apache-tomcat-7.0.53
ls
cd /
mv apache-tomcat-7.0.53 /usr/tomcat7

cd /usr/tomcat7
ls
chmod +x /usr/tomcat7

三、设置环境变量

执行vim /etc/profile命令,添加环境变量代码如下

#jdk config
export JAVA_HOME=/usr/java/jdk1.7.0_40
export CALSSPATH=$JAVA_HOME/lib/*.*  
#tomcat config
export TOMCAT_HOME=/usr/tomcat7
export CATALINA_HOME=/usr/tomcat7
#path config
export PATH=$PATH:$JAVA_HOME/bin:$TOMCAT_HOME/bin

执行指令source /etc/profile刷新环境变量

四、启动Tomcat

sh /usr/tomcat7/bin/startup.sh

在火狐浏览器中打开网址http://localhost:8080测试

关闭Tomcat命令sh /usr/tomcat7/bin/shutdown.sh

五、删除掉安装的Tomcat测试目录

rm -rf /usr/tomcat7
cd /usr
ls

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template