tomcat的安装与配置
1.创建tomcat的安装目录
mkdir tomcat
2.解压tomcat文件
tar -zxvf apache-tomcat-7.0.67.tar.gz
3.配置tomcat的环境变量
vi /etc/profile
export TOMCAT_HOME=/root/tomcat/apache-tomcat-7.0.67
立即生效 source /etc/profile
启动tomcat
cd bin
./startuo.sh
启动标志如下:
Using CATALINA_BASE: /root/tomcat/apache-tomcat-7.0.67
Using CATALINA_HOME: /root/tomcat/apache-tomcat-7.0.67
Using CATALINA_TMPDIR: /root/tomcat/apache-tomcat-7.0.67/temp
Using JRE_HOME: /root/web/jdk1.7.0_79
Using CLASSPATH: /root/tomcat/apache-tomcat-7.0.67/bin/bootstrap.jar:/root/tomcat/apache-tomcat-7.0.67/bin/tomcat-juli.jar
Tomcat started.
这是启动成功的标志。