To test memcached on Ubuntu, I would run this command:
echo "stats settings" | nc -U /run/mydir/memcached.sock
However now I have changed to Debian, and Debian nc
does not support the -U
option.
I have tried ss
, listen
, telnet -b /run/mydir/memcached.sock
with no joy.
What is the equivalent command in Debian?
Best Answer
Install the
ncat
or thenetcat-openbsd
package, both provides a version ofnc
supporting-U
.If you don't have
nc
, you can connect to a unix socket withsocat
like this: