Outils pour utilisateurs

Outils du site


tech:notes_socket_unix

Notes socket Unix

Voir :

netstat -ln | grep mysql
 
ss -x
netstat --unix
 
 
cat /proc/net/unix

Connect to an existing stream socket

nc -U /path/to/socket

Create a listening stream socket

nc -lU /path/to/socket
# lsof -U -a -p $(pidof mysqld)
COMMAND  PID  USER   FD   TYPE             DEVICE SIZE/OFF  NODE NAME
mysqld  1766 mysql   18u  unix 0xffffa0c0b6f97800      0t0 26264 /var/run/mysqld/mysqld.sock type=STREAM
sudo curl -v --unix-socket /var/run/crio/crio.sock http://localhost/info | jq

Unit socket SystemD

tech/notes_socket_unix.txt · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki