how to start the tomcat server in linux?

user2854207 picture user2854207 · Nov 8, 2013 · Viewed 204.7k times · Source

i tried to install

   1.yum install -zxvf apache-tomcat-6.0.47.tar.gz then 
   2.  export TOMCAT_HOME=/home/mpatil/softwares/apache-tomcat-6.0.37
   3. [root@localhost mpatil]# echo $TOMCAT_HOME 
      /home/mpatil/softwares/apache-tomcat-7.0.47

while starting tomcat by using this command

   4.[root@localhost mpatil]# /startup.sh 
bash: /startup.sh: No such file or directory 

i don't know why it showing like this.

my file in

      5.[root@localhost mpatil]#  find /home -type f -name   apache-tomcat-6.0.37.tar.gz
/home/mpatil/Downloads/apache-tomcat-6.0.37.tar.gz

what i tried before this is is correct or not? --please tell me my question is how to start a tomcat server in linux.Please tell me..

Answer

linux_fanatic picture linux_fanatic · Nov 8, 2013

The command you have typed is /startup.sh, if you have to start a shell script you have to fire the command as shown below:

$ cd /home/mpatil/softwares/apache-tomcat-7.0.47/bin
$ sh startup.sh 
or 
$ ./startup.sh 

Please try that, you also have to go to your tomcat's bin-folder (by using the cd-command) to execute this shell script. In your case this is /home/mpatil/softwares/apache-tomcat-7.0.47/bin.