how to start the tomcat server in linux?
Solution 1
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
.
Solution 2
Use ./catalina.sh start
to start Tomcat. Do ./catalina.sh
to get the usage.
I am using apache-tomcat-6.0.36.
Solution 3
if you are a sudo user i mean if you got sudo access:
sudo sh startup.sh
otherwise: sh startup.sh
But things is that you have to be on the bin directory of your server like
cd /home/nanofaroque/servers/apache-tomcat-7.0.47/bin
Solution 4
cd apache-tomcat-6.0.43 ====: Go to Tomcat Directory
sh bin/startup.sh =====: Start the tomcat on Linux
sh bin/shutdown.sh ======:Shut Down the tomcat on Linux
tail -f logs/catelina.out ====: Check the logs
Solution 5
I know this is old question, but this command helped me!
Go to your Tomcat Directory
Just type this command in your terminal:
./catalina.sh start
Admin
Updated on July 28, 2022Comments
-
Admin almost 2 years
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..