./startup.sh: command not found error

Tomcat Running in Mac OS

For Mac-OS , you should take ./catalina.sh file to run Tomcat

Please see the image above in a link


On Mac OS:

If you do not have Apache Tomcat installed go to https://tomcat.apache.org and download the tar.gz from the "Core:" list. Extract the contents:

tar -xf <filename>.tar.gz

Rename the resulting directory to: CATALINA_HOME and run the following commands:

cd CAATALIN_HOME/bin
+x startup.sh
./startup.sh

When prompted: enter your Mac OS password

chmod +x catalina.sh
sudo ./startup.sh

Tomcat started.


you need to make the file executable. run chmod +x startup.sh and then sudo ./startup.sh

Tags:

Ubuntu

Tomcat