脚本名字为 tomcat ,放到 /etc/init.d/ 下,并基于可执行权限 chmod +x /etc/init.d/tomcat
伦理片 http://www.dotdy.com/
chkconfig --add tomcat
chkconfig --del tomcat1
chmod -R 777 /home/tomcats/*/*/startup.sh
chmod -R 777 /home/tomcats/*/*/catalina.sh
chmod -R 777 /home/tomcats/*/*/shutdown.sh
伦理片 http://www.dotdy.com/
chkconfig --add tomcat
chkconfig --del tomcat1
chmod -R 777 /home/tomcats/*/*/startup.sh
chmod -R 777 /home/tomcats/*/*/catalina.sh
chmod -R 777 /home/tomcats/*/*/shutdown.sh