Solved

how to kill process in linux

Posted on 2007-11-16
7
3,529 Views
Last Modified: 2013-12-16
I have a hundred of these on the server. I know they are not valid. If I kill them, they reappear immed with new process id's. How to get rid of them?


nobody   14180  0.0  0.8 14352 7800 ?        S    01:52   0:00 /usr/local/apache/bin/httpd -DSSL

0
Comment
Question by:alcibiades
7 Comments
 
LVL 5

Assisted Solution

by:pavaneeshkumar
pavaneeshkumar earned 25 total points
ID: 20296787
use this to

kill -s 0 14180

also check this link
http://linux.about.com/od/commands/l/blcmdl1_kill.htm
kill -s 0 14180

Open in new window

0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 25 total points
ID: 20296815
Hi,

These processes belong to Apache web server. Why do you want to kill them?

If you want to stop them then stop apache. Please see:

http://httpd.apache.org/docs/1.3/stopping.html
http://httpd.apache.org/docs/2.2/stopping.html
http://www.defcon1.org/html/Software_Articles/Apache-start-stop/apache-start-stop.html
0
 
LVL 3

Assisted Solution

by:amirs80
amirs80 earned 25 total points
ID: 20297252
first see either it is parent process or child process, if it is parent process kill it directly by kill command and keep the level 9. if it is child process then observer the parent process and try to kill parent process if it is not required by kill command  
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 3

Assisted Solution

by:fseto
fseto earned 25 total points
ID: 20297309
Like omarfarid said, those are from your apache web server.  If your machine is suppose to be running a web server, it's ok to leave them be... unless they are causing other problems, but then that's another issue.

Note that you have to be running as root to kill it.  Try:
apachectl -k stop
0
 
LVL 9

Assisted Solution

by:binary_1001010
binary_1001010 earned 25 total points
ID: 20297666
they rerun again probably because there is some kind of cronjob . the cronjob will  the status of the process, if the process is not running, the cronjob will run the process.

0
 
LVL 10

Assisted Solution

by:elf_bin
elf_bin earned 25 total points
ID: 20298234
Don't kill 'em - it's your web server, they're not zombies.

Any to kill processes, use the kill coammmand, man kill to find out the syntax
0
 
LVL 2

Accepted Solution

by:
schmendric earned 100 total points
ID: 20302959
You can set the number of threads Apache will launch in the apache config (usually /etc/apache2/httpd.conf).  If you want apache running, but with fewer threads, you can lower the number in the config file (StartThreads, MinSpareThreads, MaxSpareThreads). You can also shut down apache with the init script, usually either `/etc/init.d/apache2 stop` or `/etc/init.d/httpd stop`.
If you do not want apache to start any longer with your server, find the default init level for your server, `less /etc/inittab` (it should be near the top) then edit that runlevels scripts and change S##httpd to s##httpd.  The scripts are case sensitive, so by simply changing the S to lowercase the system will no longer start the process.  So for example, you could, `mv S80httpd s80httpd` and apache would not start next boot.
the init scripts should be in /etc/rc#.d where # is your default runlevel, so for me it is /etc/rc3.d
Cheers.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question