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 查看进程

原文地址:https://www.cnblogs.com/pomme/p/7105802.html