首页 > 代码库 > 在CentOS上配置tomcat服务

在CentOS上配置tomcat服务

# hapday start 2016-02-04

#!/bin/bash    
	# description: Tomcat Start Stop Restart    
	# processname: tomcat    
	# chkconfig: 234 20 80    
	JAVA_HOME=/usr/local/jdk/jdk1.8.0_71    
	export JAVA_HOME    
	PATH=$JAVA_HOME/bin:$PATH    
	export PATH    
	CATALINA_HOME=/usr/local/tomcat/apache-tomcat-8.0.30    
	    
	case $1 in    
	start)    
	sh $CATALINA_HOME/bin/startup.sh    
	;;     
	stop)       
	sh $CATALINA_HOME/bin/shutdown.sh    
	;;     
	restart)    
	sh $CATALINA_HOME/bin/shutdown.sh    
	sh $CATALINA_HOME/bin/startup.sh    
	;;     
	esac        
	exit 0  
	#chmod 755 tomcat
	#chkconfig --add tomcat
	#chkconfig --level 2345 tomcat on
	#chkconfig --list tomcat

# hapday end 2016-02-04

  

在CentOS上配置tomcat服务