tomcat

加入服务  

可以在 /etc/rc.d/init.d 创建 tomcat    

#!/bin/bash
#chkconfig:2345 96 14          \\系统运行等级
CATALINA_HOME=/usr/tomcat  \\路径定义
exec $CATALINA_HOME/bin/catalina.sh $*   

chmod  a+x /etc/rc.d/init.d/tomcat

chkconfig  add tomcat

service  tomcat start            centos 6

systemctl   start  tomcat  centos 7

实际实现   $catalina.sh  命令 

jps 查看进程

posted @ 2017-07-02 13:28  Pomme_king  阅读(125)  评论(0编辑  收藏  举报