I want to shut down a tomcat server. To this end I went to the bin directory of the tomcat installation and wanted to execute the shutdown.sh script, as described in the approved answer to this question:
Several ports (8005, 8080, 8009) required by Tomcat Server at localhost are already in use
I first simply tried
./shutdown.sh
I received the following error message:
-bash: ./shutdown.sh: Permission denied
So I tried the following command:
sudo ./shutdown.sh
This gave me the following error message:
sudo: ./shutdown.sh: command not found
So how can I run the shutdown.sh script as sudo-user? What is the correct syntax?