Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to run the startup.sh command in ubuntu right from the /usr/local/tomcat/bin directory, but it tells me that "command not found"

Why would that be the case? If I do an ls -l command it shows that file right in the directory.

Thanks in advance for your suggestions :) I use tomcat 7.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

try sudo /etc/init.d/tomcat start

or sudo /etc/init.d/tomcat6 start. If you want to start it manually, you may need to chmod +x startup.sh to make it executable first.

share|improve this answer
    
That gives this error: Cannot find /usr/local/tomcat/bin/catalina.sh This file is needed to run this program –  Genadinik Apr 6 '11 at 23:58
    
Did you install tomcat manually or with apt-get? –  ed209 Apr 7 '11 at 0:00
    
I installed it manually. –  Genadinik Apr 7 '11 at 0:06
    
also, while there is a file called tomcat in the /etc/init.d/ diretory, when I try to call it, that generates an error "command not found" –  Genadinik Apr 7 '11 at 0:07
    
try installing with apt-get (google it) or try this guide for hints on your manual installation: howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu –  ed209 Apr 7 '11 at 1:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.