Updated
I find out that the path of jdk it using is wrong. eval: 1: /opt/Java/jdk1.6.0_25/jre/bin/java: not found the Java should be lower case java, how is that happen? When I run this script directly on server, it is just okay.
I'm trying to start or shutdown tomcat via a remote client.
On my server, I've got 3 different tomcat: tomcat1, tomcat2, and tomcat3.
Dear Experts ,
I want to stop and Start tomcat at the time of shutdown and startup of our server . I was trying to stop tomcat with following command
Code:
# su - dm -c "/export/home/Finder/FinderWeb/jakarta-tomcat-3.3.1a/bin/shutdown.sh"
but i am getting following error.
We have a script like below to monitor our server. During this code our server getting restarted. Can anyone please explain the meaning of below script?
Actually I'm using supervisor to monitor a process and restart it when it stops for some reason. The problem is that in case of a supervisor crash the process stops get monitored.
So I thought to schedule a cronjob to check supervisor is running, and eventually restart it.
The next thing I'm considering is to get rid of supervisor and check my process directly from the cronjob.
Hi,
I manually installed tomcat5 on my server and want it to start directly after booting.
I wrote a short Init-script for that:
#!/bin/sh
### BEGIN INIT INFO
# Provides: tomcat
# Required-Start: $network $syslog $remote_fs
# Should-Start: $named $syslog $time
# Required-Stop: $network $syslog
Dear all,
We've just install a Centos-64 and TomCat 5.5.28.
TomCat installed, and it started. But somehow even if we shut it down, we still can see the tomcat page at port 8080. So basically we can't turn it off. But if we run shutdown for the second time, it will gives us message:
I am trying to install tomcat on my machine(Linux Fedora 15).
I have followed the below steps
I have entered in to root and typed the following
[root@user ~]# tomcat
bash: tomcat: command not found...
Install package 'tomcat' to provide command 'tomcat'? [N/y]
I have entered y and result is installed tomcat on machine as below
* Running...
* Resolving dependencies...
I have two server instances TOMCAT 5.5 and TOMCAT 5.0.28, My application running on TOMCAT5.5.
I am new to linux. I have set up my VPS with Ubuntu 12.04 LTS 32 bit. I have successfully installed Tomcat and successfully started it with /usr/share/apache-tomcat-7.0.34/bin/catalina.sh run.
But when I try to access the default tomcat page with [MyServerIP]:8080, It is unable to connect. Am I doing something wrong?
UPDATE
I did a restart and this is all I have in the log.