./startup.sh: command not found error

I downloaded the tomcat9 zip file and extracted all the files. now i'm running

 /bin$ sudo ./startup.sh 

I get this error

 sudo: ./startup.sh: command not found 

all files are then why this error?

+14
source share
5 answers

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

+26
source

On Mac OS:

If you do not have Apache Tomcat installed, go to https://tomcat.apache.org and download 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.

+7
source

Tomcat Launch on Mac OS

For Mac-OS, you must take the file. /catalina.sh to launch Tomcat

See image above in link

+3
source
 chmod 755 ./startup.sh bash ./startup.sh 
0
source

Try this:

export PATH=/where_the_path/tomcat/bin:$PATH

it works for me.

0
source

All Articles