[Previo por Fecha] [Siguiente por Fecha] [Previo por Hilo] [Siguiente por Hilo]

[Hilos de Discusión] [Fecha] [Tema] [Autor]

RE: Re: [Ayuda] Error en apache...



Y el "netstat -anp" ? que te dice ?

-a -> all network information
-n -> numeric output of address instead of hostnames
-p -> process and network bindings.


dale 
"telnet ip.address 80 <enter>" 

y luego cuando te conectes le das:

"HEAD / HTTP/1.0 <enter> <enter>" 

para ver quien es el que esta ahi ... (respeta las mayusculas ok ?)


Veo algo en la salida de tus procesos que dice "TUX worker" por lo cual
casi me apuesto un carton de chelas a que es el TUX Web server el que te
va a responder al comando "HEAD / HTTP/1.0"

Segun se el TUX es un Web Server ligado al kernel para mejor performance
asi que prueba a matar esos procesos. estoy seguro que deberas
desactivar tux para correr Apache.


El vie, 03-05-2002 a las 14:54, Luis Medrano Zaldivar escribió:
> 1.-el webserver esta funcionando pero no aparece dentro de 
> los procesos cuando le das "ps ax|more" o si le doy killall -9 
> httpd" marca que no hay ningun proceso con este 
> nombre...aqui esta una copia de los procesos que esta 
> corriendo la maquina espero que me puedan ayudar:
> 
> [root@evrtwa1-ar15-4-62-148-075 init.d]# ps aux|more
> USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   
> TIME COMMAND
> root         1  0.0  0.1  1412  504 ?        S    May02   0:35 init [5] 
> root         2  0.0  0.0     0    0 ?        SW   May02   0:00 [keventd]
> root         3  0.0  0.0     0    0 ?        SW   May02   0:00 [kapm-
> idled]
> root         4  0.0  0.0     0    0 ?        SWN  May02   0:00 
> [ksoftirqd_CPU0]
> root         5  0.0  0.0     0    0 ?        SW   May02   0:00 [kswapd]
> root         6  0.0  0.0     0    0 ?        SW   May02   0:00 [kreclaimd]
> root         7  0.0  0.0     0    0 ?        SW   May02   0:00 [bdflush]
> root         8  0.0  0.0     0    0 ?        SW   May02   0:00 [kupdated]
> root         9  0.0  0.0     0    0 ?        SW<  May02   0:00 
> [mdrecoveryd]
> root        80  0.0  0.0     0    0 ?        SW   May02   0:00 [khubd]
> root       680  0.0  0.0     0    0 ?        SW   May02   0:00 [eth0]
> root       681  0.0  0.1  2076  740 ?        S    May02   0:00 /sbin/
> dhcpcd -n -
> root       768  0.0  0.1  1472  592 ?        S    May02   0:00 
> syslogd -m 0
> root       773  0.0  0.2  1968 1080 ?        S    May02   0:00 klogd -
> 2
> rpc        793  0.0  0.1  1552  576 ?        S    May02   0:00 
> portmap
> rpcuser    821  0.0  0.2  1688  836 ?        S    May02   0:00 
> rpc.statd
> root       934  0.0  0.1  1396  524 ?        S    May02   0:00 /usr/
> sbin/apmd -p
> ident     1045  0.0  0.2 26924  928 ?        S    May02   0:00 
> identd -e -o
> ident     1065  0.0  0.2 26924  928 ?        S    May02   0:00 
> identd -e -o
> ident     1066  0.0  0.2 26924  928 ?        S    May02   0:00 
> identd -e -o
> ident     1067  0.0  0.2 26924  928 ?        S    May02   0:00 
> identd -e -o
> ident     1068  0.0  0.2 26924  928 ?        S    May02   0:00 
> identd -e -o
> root      1083  0.0  0.6  4280 2404 ?        S    May02   0:00 /usr/
> sbin/snmpd -
> root      1117  0.0  0.1  1632  688 ?        S    May02   0:00 [TUX 
> date]
> root      1118  0.0  0.0     0    0 ?        SW   May02   0:00 [TUX 
> logger]
> root      1119  0.0  0.1  1640  680 ?        S    May02   0:00 [TUX 
> manager]
> nobody    1120  0.0  0.1  1640  680 ?        S    May02   0:00 
> [TUX worker 0]
> nobody    1121  0.0  0.1  1640  680 ?        S    May02   0:00 
> [TUX worker 0]
> nobody    1122  0.0  0.1  1640  680 ?        S    May02   0:00 
> [TUX worker 0]
> nobody    1123  0.0  0.1  1640  680 ?        S    May02   0:00 
> [TUX worker 0]
> nobody    1124  0.0  0.1  1640  680 ?        S    May02   0:00 
> [TUX worker 0]
> nobody    1125  0.0  0.1  1640  680 ?        S    May02   0:00 
> [TUX worker 0]
> nobody    1126  0.0  0.1  1640  680 ?        S    May02   0:00 
> [TUX worker 0]
> nobody    1127  0.0  0.1  1640  680 ?        S    May02   0:00 
> [TUX worker 0]
> nobody    1128  0.0  0.1  1640  680 ?        S    May02   0:00 
> [TUX worker 0]
> named     1145  0.0  0.8 11520 3352 ?        S    May02   0:00 
> named -u named
> named     1147  0.0  0.8 11520 3352 ?        S    May02   0:00 
> named -u named
> named     1148  0.0  0.8 11520 3352 ?        S    May02   0:00 
> named -u named
> named     1149  0.0  0.8 11520 3352 ?        S    May02   0:00 
> named -u named
> named     1150  0.0  0.8 11520 3352 ?        S    May02   0:00 
> named -u named
> root      1170  0.0  0.1  1456  560 ?        S    May02   0:00 routed
> root      1188  0.0  0.3  2676 1268 ?        S    May02   0:00 /usr/
> sbin/sshd
> root      1221  0.0  0.2  2264 1008 ?        S    May02   0:00 xinetd 
> -stayalive
> root      1253  0.0  0.1  1672  524 ?        S    May02   0:00 
> rpc.yppasswdd
> root      1273  0.0  0.2  2244 1028 ?        S    May02   0:00 /bin/
> sh /usr/bin/
> mysql     1313  0.0  1.1 26820 4340 ?        S    May02   0:00 /
> usr/libexec/mysq
> mysql     1316  0.0  1.1 26820 4340 ?        S    May02   0:00 /
> usr/libexec/mysq
> mysql     1317  0.0  1.1 26820 4340 ?        S    May02   0:00 /
> usr/libexec/mysq
> mysql     1322  0.0  1.1 26820 4340 ?        S    May02   0:00 /
> usr/libexec/mysq
> root      1329  0.0  0.5  5656 2156 ?        S    May02   0:00 
> sendmail: accepti
> root      1357  0.0  0.0     0    0 ?        SW   May02   0:00 
> [scsi_eh_0]
> root      1376  0.0  0.1  1440  496 ?        S    May02   0:00 gpm -t 
> imps2 -m /
> postgres  1461  0.0  0.4  6620 1644 ?        S    May02   0:00 /
> usr/bin/postmast
> root      1484  0.0  0.1  1584  660 ?        S    May02   0:00 crond
> xfs       1554  0.0  0.9  5132 3780 ?        S    May02   0:00 xfs -
> droppriv -da
> root      1572  0.0  0.3  3256 1172 ?        S    May02   0:00 smbd 
> -D
> root      1577  0.0  0.2  2416 1084 ?        S    May02   0:00 nmbd 
> -D
> daemon    1629  0.0  0.1  1444  568 ?        S    May02   0:00 /
> usr/sbin/atd
> root      1659  0.0  0.1  1384  448 tty1     S    May02   0:00 /sbin/
> mingetty tt
> root      1660  0.0  0.1  1384  448 tty2     S    May02   0:00 /sbin/
> mingetty tt
> root      1661  0.0  0.1  1384  448 tty3     S    May02   0:00 /sbin/
> mingetty tt
> root      1662  0.0  0.1  1384  448 tty4     S    May02   0:00 /sbin/
> mingetty tt
> root      1663  0.0  0.1  1384  448 tty5     S    May02   0:00 /sbin/
> mingetty tt
> root      1664  0.0  0.1  1384  448 tty6     S    May02   0:00 /sbin/
> mingetty tt
> root      1665  0.0  0.4  6204 1712 ?        S    May02   0:00 /usr/
> bin/gdm -nod
> root      1673  0.0  0.5  6360 2020 ?        S    May02   0:00 /usr/
> bin/gdm -nod
> root      1674  0.0  0.4 18828 1712 ?        S    May02   0:00 /etc/
> X11/X :0 -au
> gdm       1679  0.0  0.8  7052 3388 ?        S    May02   0:00 /usr/
> bin/gdmlogin
> gdm       1680  0.0  1.4  8512 5388 ?        S    May02   0:00 /usr/
> bin/xsri --r
> root      5204  0.0  0.2  1744  824 ?        S    09:21   0:00 
> in.telnetd: evrtw
> root      5205  0.0  0.3  2440 1276 pts/0    S    09:21   0:00 login 
> -- lmedrano
> lmedrano  5206  0.0  0.3  2444 1304 pts/0    S    09:21   0:00 -
> bash
> root      6262  0.0  0.2  2356 1016 pts/0    S    13:47   0:00 su -
> root      6263  0.0  0.3  2440 1280 pts/0    S    13:47   0:00 -
> bash
> root      6375  0.0  0.1  2664  752 pts/0    R    13:57   0:00 ps 
> aux
> root      6376  0.0  0.1  1684  576 pts/0    S    13:57   0:00 more
> [root@evrtwa1-ar15-4-62-148-075 init.d]# killall -9 httpd
> httpd: no process killed
> [root@evrtwa1-ar15-4-62-148-075 init.d]# netstat -anp |grep 
> tcp |grep 80
> tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      -                   
> 
> 
> 
> >La solucion es simple:
> >
> >YA tienes corriendo un webserver en tu caja.
> >:)
> > 
> >Dale a tu maquina un "ps ax" si ves un httpd corriendo le 
> das "killall
> >-9 httpd". El error es que ya hay un servicio "ESCUCHANDO" 
> (LISTEN) en
> >el puerto 80 o sease:
> >
> >mata primero el proceso que esta ocupando el puerto 80
> >
> >si tienes una version de netstat reciente podras usas la 
> opcion
> >"process" para ver las asociaciones de sockets de servicio 
> con los
> >procesos que estan corriendo:
> >
> >netstat -anp |grep tcp |grep 80
> >
> >te debe dar algo como:
> >
> >tcp        0      0 0.0.0.0:80              0.0.0.0:*              
> >LISTEN      1069/httpd
> >
> >El proceso numero 1069 esta ligado al httpd
> >
> >
> >
> >El vie, 03-05-2002 a las 10:28, Luis Medrano Zaldivar 
> escribió:
> >> Lista,
> >> 
> >> Alguien me podria decir que es lo que esta pasando con 
> este 
> >> error que esta registrando en apache y como puedo 
> >> arreglarlo:
> >> 
> >> [Thu May  2 19:54:53 2002] [crit] (98)Address already in 
> use: 
> >> make_sock: could n
> >> ot bind to port 80
> >> [Thu May  2 19:55:00 2002] [crit] (98)Address already in 
> use: 
> >> make_sock: could n
> >> ot bind to port 80
> >> [Thu May  2 19:55:23 2002] [crit] (98)Address already in 
> use: 
> >> make_sock: could n
> >> ot bind to port 80
> >> 
> >> Saludos,
> >> Luis
> >> 
> >> -- 
> >> 
> >> 
> _______________________________________________
> >> Ayuda mailing list
> >> Ayuda en linux org mx
> >> Para salir de la lista: http://mail.linux.org.mx/mailman/
> listinfo/ayuda/
> >
> >
> >_______________________________________________
> >Ayuda mailing list
> >Ayuda en linux org mx
> >Para salir de la lista: http://mail.linux.org.mx/mailman/listinfo/
> ayuda/
> >
> >
> -- 


_______________________________________________
Ayuda mailing list
Ayuda en linux org mx
Para salir de la lista: http://mail.linux.org.mx/mailman/listinfo/ayuda/



[Hilos de Discusión] [Fecha] [Tema] [Autor]