lsof -U
Lister les unix domain socket
-
http://linux.about.com/library/cmd/blcmdl8_lsof.htmOn recupere le pid du processus qui a ouvert la socket :
netstat -laptun
Puis :
$ ps -eo pid,etime | grep 8084
8084 3-02:02:59
ici 3 jours, 2 heures, 2 minutes...!
-
https://links.infomee.fr/?ef8W_gPoint de vue différents :)
Ici, lorsqu'on utilise "localhost", la connexion va se faire par une socket et lorsqu'on utilise "127.0.0.1", la connexion se fera par tcp. On pourrait se dire que le comportement est anormal, mais en fait, non :
"The patch won't be added as then "localhost" has two meanings - one time meaning "use the unixdomain socket in the default location" and one time actually "resolve localhost and use TCP" as it is taught in many places that "localhost" in MySQL has the first meaning we keep it there."
La socket est déterminée ici dans le php.ini :
; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =
-
https://bugs.php.net/bug.php?id=52434type "netstat -a -n -o" to find out which PID is using this port. Then find the PID in the TaskManager... Then kill the process :)
-
https://links.infomee.fr/?zq9DxwBon cours simple sur socket, voir partie UDP
-
http://ouvea.edu.ups-tlse.fr/~torguet/cours/l3rx/SupportSockets.html