Connection refused when trying to connect
Rigler, Stephen C.
srigler at marathonoil.com
Thu Jan 20 19:19:36 UTC 2005
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 at redhat.com
[mailto:redhat-list-bounces at redhat.com] 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 at netcom.army.mil> 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 at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list