1、安装java
1
|
yum
install
-y java-1.7.0-openjdk
|
2、安装tomcat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
tar
zxf apache-tomcat-7.0.65.
tar
.gz -C
/usr/local/
cd
/usr/local/
ln
-s apache-tomcat-7.0.65/ tomcat
vim
/etc/profile
.d
/tomcat
.sh
export
CATALINA_HOME=
/usr/local/tomcat
export
PATH=$PATH:$CATALINA_HOME
/bin
.
/etc/profile
.d
/tomcat
.sh
cp
/usr/local/tomcat/bin/catalina
.sh
/etc/init
.d
/tomcat
vim
/etc/init
.d
/tomcat
# chkconfig: 2345 10 90
# description:tomcat service
CATALINA_HOME=
/usr/local/tomcat
chkconfig --add tomcat
chkconfig tomcat on
service tomcat start
|
本文转自1321385590 51CTO博客,原文链接:http://blog.51cto.com/linux10000/1741970,如需转载请自行联系原作者