Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Dec 2011
    Posts
    71
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    2
    Quote Originally Posted by Akendo View Post
    Sure KenJackson, that is a "way" of doing it. But that's confusing, what system do you running on?
    The first one was the old way on Fedora (and I think Red Hat and CentOS, and probably PCLinuxOS and others), and it still works.

    The second one is the new way on those same systems, and probably on more.

    The third one is Arch (at least it should be right--I don't actually run an apache server on Arch).

    The point is that there is a more correct way to shutdown a server. Killing is always a last resort--even on a computer.




  2. #12
    Join Date
    Mar 2012
    Location
    Chongqing China
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    first ps,then kill /killall command

  3. #13
    Join Date
    Mar 2012
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I think killing a process should be quite similar to how it is done on Windows. Whatever opens up your Task Manager should include Processes, in which you can easily disable a process if needed.

  4. #14
    Join Date
    Nov 2011
    Posts
    71
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Rep Power
    2
    Quote Originally Posted by DarthVader3257 View Post
    I think killing a process should be quite similar to how it is done on Windows. Whatever opens up your Task Manager should include Processes, in which you can easily disable a process if needed.
    Not everything is running a gui. I know the two servers that I run at home don't even have a gui installed.

  5. #15
    Join Date
    Apr 2012
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    This really is the only thing that I have to post. It's old, but it totally relates to this!

    Click Here

  6. #16
    Join Date
    Apr 2012
    Location
    Manila, Philippines
    Posts
    27
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Check the process list first by issuing the following command:

    Code:
    $ ps x
    Then look for the process identifier (PID) of the program you want to kill, then type:

    Code:
    $ kill -9 [PID]
    That's what they taught me ever since and that's what I always use.
    The -9 will ensure "execution" of your command.
    Acronix | Coders Republic
    "In my weakness, I find strength."

  7. #17
    Join Date
    Apr 2012
    Location
    Netland
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by Acronix View Post
    Check the process list first by issuing the following command:

    Code:
    $ ps x
    Then look for the process identifier (PID) of the program you want to kill, then type:

    Code:
    $ kill -9 [PID]
    That's what they taught me ever since and that's what I always use.
    The -9 will ensure "execution" of your command.
    Very helpful. Thanks. I suppose this is the dos version of windows?

  8. #18
    Join Date
    Apr 2012
    Location
    Manila, Philippines
    Posts
    27
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by Godric View Post
    Very helpful. Thanks. I suppose this is the dos version of windows?
    No, it's for Linux terminal. You're welcome.
    Acronix | Coders Republic
    "In my weakness, I find strength."

  9. #19
    Join Date
    Apr 2012
    Posts
    90
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    2
    Step #1: First, you need to find out process PID (process id),Use ps command or pidof command to find out process ID (PID). Syntax ps aux | grep processname pidof processname. Step #2Above command tell you PID of lighttpd process. Now kill process using this PID.

  10. #20
    Join Date
    Jan 2012
    Location
    Bahrain
    Posts
    187
    Thanks
    4
    Thanked 1 Time in 1 Post
    Rep Power
    2
    I usually search for the process and it's PID before i attempt to kill or terminate it. Well i use grep to see if the process is running

    Code:
    ps aux | grep kloxo
    then find it's process id

    Code:
    pidof kloxo
    and kill it using

    kill pid

 

 

Similar Threads

  1. Replies: 0
    Last Post: 02-14-2012, 08:16 AM
  2. kill job started in crontab
    By rkoziol7 in forum Command Line
    Replies: 0
    Last Post: 02-10-2012, 04:11 PM
  3. Replies: 0
    Last Post: 12-30-2011, 03:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,573
Threads: 3,920
Posts: 9,442
Top Poster: Fred (1,486)
Welcome to our newest member, Ronald de Souza

» Links



Powered by vBadvanced CMPS