PRVS
PRVS

Reputation: 1690

Create service tomcat - Start and Shutdown

I installed the apache tomcat but to start the service, i have to go to the path $HOME/apache-tomcat-8.0.28/bin and run the script ./startup.sh to start and ./shutdown.sh to shutdown. How can I make like

service tomcat start

service tomcat stop

or another way for not need to go to the path of the tomcat on Ubuntu?

Upvotes: 0

Views: 279

Answers (1)

Kenny Nguyen
Kenny Nguyen

Reputation: 44

/etc/init.d/tomcat stop
/etc/init.d/tomcat start

Upvotes: 1

Related Questions