放入tomcat安装路径内,可以实现tomcat命令功能
直接上代码:将横线内黏贴保存为tomcat.sh
---------------------------------------------------
#!/bin/sh
# chkconfig: 345 08 92
# description: Tomcat daemon start/stop scripts
################################################################################
# #
# Tomcat Scripts 1.0.0 #
# #
# used:tomcat.sh start #
# tomcat.sh stop #
# tomcat.sh restart #
# tomcat.sh status #
# tomcat.sh islive #
############