|
Re: lug-bg: port 1421,1423
- Subject: Re: lug-bg: port 1421,1423
- From: skelet_bg@xxxxxxxxx (Georgi Georgiev)
- Date: Thu, 4 Jan 2001 08:43:40 -0800 (PST)
--- Jordan Damgov <jdamgov@xxxxxxxxxxxx> wrote: >
Zdravejte,
> i ChNG na vsichki!
>
> Njakoj mozhe li da mi kazhe kakvo shte reche tova:
>
> >netstat -l
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address Foreign
> Address State
> ...
> tcp 0 0 *:1421 *:*
> LISTEN
> tcp 0 0 *:1423 *:*
> LISTEN
> ...
Ami imash pusnat server na tezi portove.
Ako iskash da razberesh koi proces e otgovoren za
tazi rabota, vij v /proc
znachi v
/proc/net/tcp
poslednite chisla v redovete sa nomera na socket-i
primerno neka reda koito te valnuva e:
8: 00000000:1538 00000000:0000 0A 00000000:00000000
00:00000000 00000000 1002 0 97
Tozi red pri men saotvetstva na listen socketa na
port $1538 (koeto e 5432=postgreSQL). Poslednoto
chislo v reda e nomer na socketa.
posle za da namerish procesa deto slusha
tarsish vav failovete
/proc/proc_number/fd/*
komanda:
ls -l /proc/*/fd/*| grep 97
hte poluchish izhod ot vida:
lrwx------ 1 pgroot pgroot 64 Jan 4 18:21
/proc/137/fd/3 -> socket:[97]
Ta nomera na procesa ti e 137.
=====
Skelet
====== http://skelet.hit.bg
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|
|
|