2
Every time I need to start or stop Tomcat, I am navigating to:
/Tomcat_Dir/bin
and once I am in the folder I enter:
./Startup.sh
And to stop the server, I navigate to the same directory and enter:
./Shutdown.sh
I was wondering if there was a way in Linux to alias the above described process, so that from any location in the filesystem, I can simply type in something like
StartTomcat
or StopTomcat
to perform the Startup and Shutdown of the web-server?
This is great. I had to use sudo
alias StartTomcat='sudo /Tomcat_Dir/bin/Startup.sh'
– Andrew Johnston – 2016-05-25T16:14:34.157