Fork me on GitHub

centos7设置tomcat开机自启动

centos7 设置tomcat开机自启动 如果没有成功 看看此脚本是否设置成了可执行 chmod +x
vim /etc/rc.d/rc.local 打开后添加下文

export JAVA_HOME=/usr/local/jdk1.8.0_144
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
export CATALINA_HOME=/usr/local/tomcat8
#自启动tomcat
/usr/local/tomcat8/bin/startup.sh


最新评论

    还没有人评论...

当当

友情链接

Powered by Python. Copyright © 2017.

鄂ICP备17010875号. All rights reserved.