标签:rar source 添加 function cti yum jdk8 mod src
一、下载jdk
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
下载tomcat
http://tomcat.apache.org/download-80.cgi
2、安装jdk
yum install glibc.i686 mkdir -p /usr/java tar xf jdk-8u191-linux-i586.tar.gz -C /usr/java
3、配置环境变量
vim /etc/profile
export JAVA_HOME=/usr/java/jdk1.8.0_191 export JAVA_PATH=$JAVA_HOME export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
生效
source /etc/profile
4、验证
5、安装tomcat
tar xf apache-tomcat-8.5.35.tar.gz -C /usr/local/
cd /usr/local/
mv apache-tomcat-8.5.35 tomcat
cp -p /usr/local/tomcat/bin/catalina.sh /etc/init.d/tomcat
vim /etc/init.d/tomcat 第二行添加 # chkconfig: 112 63 37 # description: tomcat server init script # Source Function Library . /etc/init.d/functions JAVA_HOME=/usr/local/jdk1.8.0_191/ CATALINA_HOME=/usr/local/tomcat/ 添加完了以后 chmod 755 /etc/init.d/tomcat chkconfig --add tomcat chkconfig tomcat on
6、启动tomcat
/etc/init.d/tomcat start
访问 ip+8080端口访问
标签:rar source 添加 function cti yum jdk8 mod src
原文地址:https://www.cnblogs.com/wangyong-blog/p/9921452.html