hi groupers, i got troubled with linux and tomcat 5.x

O

omm1979

hi my problem is someday i was distracted and without think i deleted
all the apache tomcat directory from linux but a little problem i
didn't stop the services, so it started my nightmare because i couldn't
stop/kill/reconfigurate the services then when i wanted to install
again the apache tomcat i couldn't because linux's services were
occupied i mean there were http and https services (8080 and 8443 ports
respectively) so i had to install it in another port 8000 and i can't
get solve this problem, i want to put/active those ports where they
were. i'll regard so much if anybody has an idea, and excuse me about
my english.
 
M

Manish Pandit

Hi there,

Assuming you have root priviledges (as you *deleted* the tomcat
folder), do this:

$ps -eaf | grep 'java'

you should see something like:

tomcat 20201 1 0 Sep10 ? 00:05:19
/usr/java/jdk1.5.0_06/bin/java
-Djava.endorsed.dirs=/usr/share/tomcat5/common/endorsed -classapth bla
bla bla..

The number 20201 is the process ID in this case. Get the one you see
and then do this :

$kill -9 <The number you see>

That should kill the old process that is sitting there taking up your
ports.

-cheers,
Manish
 
G

gk

Manish said:
Hi there,

Assuming you have root priviledges (as you *deleted* the tomcat
folder), do this:

$ps -eaf | grep 'java'

you should see something like:

tomcat 20201 1 0 Sep10 ? 00:05:19
/usr/java/jdk1.5.0_06/bin/java
-Djava.endorsed.dirs=/usr/share/tomcat5/common/endorsed -classapth bla
bla bla..

The number 20201 is the process ID in this case. Get the one you see
and then do this :

$kill -9 <The number you see>


Hi Manish ,

is there any specific reason to put 9 in your command ? why 9 ? what
it means here ? can we put any number instead of 9 ?

Thanks
 
M

Matt Humphrey

gk said:
Hi Manish ,

is there any specific reason to put 9 in your command ? why 9 ? what
it means here ? can we put any number instead of 9 ?

The kill command sends an interrupt signal to the process--the number is the
interrupt number. Signals are sometimes overridden to make the program do
something, such as reload a file, but signal #9 (the dreaded "kill -9")
always means halt.

Matt Humphrey (e-mail address removed) http://www.iviz.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top