How to automatically start Tomcat after starting an Amazon EC2 instance -


we have instance needs turned on during business hours. have scheduled times start/stop instances. problem facing that, once instance started, have manually log instance , start tomcat. i've tried to, start service in windows, no luck. tried go user data, not able head around that...can suggest way in can automate starting tomcat well???

your best bet (if want cut out lot of trial , error) reinstall tomcat .exe installer, , explicitly install run service. (you accomplish without reinstalling; suggest reinstalling merely because when all's said , done, it'll take less time, unless have lots of custom tomcat config.) once it's installed service, go services , make sure tomcat service's "startup type" "automatic". (you able control tomcat service's startup type apache service monitor in system tray well, without opening services.)

note running tomcat service may conflict way schedule starting/stopping tomcat during business hours, since it's not clear how you're doing scheduling, can't comment on except should make sure, in scheduler, you're starting , stopping the service, not windowed/console instance of tomcat. (otherwise end either 2 tomcats running on 2 different ports, or else errors port conflicts.)


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -