Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
omm1979@gmail.com - 23 Sep 2006 06:06 GMT
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.
Manish Pandit - 23 Sep 2006 06:24 GMT
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

> 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
[quoted text clipped - 6 lines]
> were. i'll regard so much if anybody has an idea, and excuse me about
> my english.
gk - 23 Sep 2006 12:44 GMT
> Hi there,
>
[quoted text clipped - 14 lines]
>
> $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

> That should kill the old process that is sitting there taking up your
> ports.
[quoted text clipped - 12 lines]
> > were. i'll regard so much if anybody has an idea, and excuse me about
> > my english.
Matt Humphrey - 23 Sep 2006 13:53 GMT
>> Hi there,
>>
[quoted text clipped - 19 lines]
> 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 matth@ivizNOSPAM.com http://www.iviz.com/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.