首页 > 系统服务 > 详细

linux下tomcat随系统自动启动,最简单的方式

时间:2014-08-25 10:14:35      阅读:298      评论:0      收藏:0      [点我收藏+]
Last login: Mon Aug 25 09:45:27 2014 from 10.10.15.6
[root@moshi ~]# vi /etc/rc.local 

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don‘t
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
/opt/tomcat-annex8089/bin/startup.sh

/opt/tomcat-annex8089/bin/startup.sh

为你的tomcat的启动目录,可以配置多个。

linux下tomcat随系统自动启动,最简单的方式

原文:http://my.oschina.net/u/1245614/blog/306184

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!