RE: Connection refused when trying to connect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the spirit of complete overkill..

A Redhat'ish way to do it could be like this:

$ service httpd status
httpd (pid 3443 3442 3441 3440 3439 3438 3437 3436 3372) is running... 

If you just want the pid's:
$ pgrep httpd
3372
3436
3437
3438
3439
3440
3441
3442
3443

If you already know that httpd runs as apache, you could do this:
$ ps -U apache -f
UID        PID  PPID  C STIME TTY          TIME CMD
apache    3436  3372  0 Jan17 ?        00:00:00 /usr/sbin/httpd
apache    3437  3372  0 Jan17 ?        00:00:00 /usr/sbin/httpd
apache    3438  3372  0 Jan17 ?        00:00:00 /usr/sbin/httpd
apache    3439  3372  0 Jan17 ?        00:00:00 /usr/sbin/httpd
apache    3440  3372  0 Jan17 ?        00:00:00 /usr/sbin/httpd
apache    3441  3372  0 Jan17 ?        00:00:00 /usr/sbin/httpd
apache    3442  3372  0 Jan17 ?        00:00:00 /usr/sbin/httpd
apache    3443  3372  0 Jan17 ?        00:00:00 /usr/sbin/httpd

The list goes on...

-Steve

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of inode0
Sent: Thursday, January 20, 2005 12:55 PM
To: General Red Hat Linux discussion list
Subject: Re: Connection refused when trying to connect

On Thu, 20 Jan 2005 11:06:21 -0700, Schott, Erik J Mr ANOSC/FCBS
<erik.schott-FCBS@xxxxxxxxxxxxxxx> wrote:
> To avoid that confusion, in future try this command line entry:
> 
> ps aux | grep httpd | grep -v grep
> 
> It will not display your grep command in the output.

In the spirit of many ways to accomplish the same task I usually do
something like:

ps aux | grep [h]ttpd

John

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux