Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to run the 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
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 to make it executable first.

share|improve this answer
That gives this error: Cannot find /usr/local/tomcat/bin/ 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: – ed209 Apr 7 '11 at 1:13

Your Answer


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.