tech:notes_socket_unix
Différences
Ci-dessous, les différences entre deux révisions de la page.
| tech:notes_socket_unix [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:notes_socket_unix [2025/04/02 14:13] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| {{tag> | {{tag> | ||
| - | = Notes socket Unix | + | # Notes socket Unix |
| Voir : | Voir : | ||
| * [[Postgres - se connecter a une socket]] | * [[Postgres - se connecter a une socket]] | ||
| + | * https:// | ||
| - | < | + | ~~~bash |
| netstat -ln | grep mysql | netstat -ln | grep mysql | ||
| - | </ | ||
| - | < | + | ss -x |
| + | netstat --unix | ||
| + | |||
| + | |||
| + | cat / | ||
| + | ~~~ | ||
| + | |||
| + | Connect to an existing stream socket | ||
| + | ~~~bash | ||
| + | nc -U / | ||
| + | ~~~ | ||
| + | |||
| + | Create a listening stream socket | ||
| + | ~~~bash | ||
| + | nc -lU / | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| # lsof -U -a -p $(pidof mysqld) | # lsof -U -a -p $(pidof mysqld) | ||
| COMMAND | COMMAND | ||
| mysqld | mysqld | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~bash |
| sudo curl -v --unix-socket / | sudo curl -v --unix-socket / | ||
| - | </ | + | ~~~ |
| - | == Unit socket SystemD | + | ## Unit socket SystemD |
| Voir : | Voir : | ||
tech/notes_socket_unix.1742825205.txt.gz · Dernière modification : de 127.0.0.1
