更新时间:2022-09-20 20:24:06
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
|