On Apr 12, 8:19 am, OhadH <[email protected]> wrote: > I have installed memcached on Ubuntu machine using : > > sudo apt-get install memcached > > I ran it using: > > memcached -v -u root &
Verbose + background sounds messy. Just run it in the foreground. We need to special case "-u root" and make it not work. I don't know why people do that, but it's always a bad idea. > Using nestat I made sure it is listening on 11211 (localhost) > > I have tried to do: > > echo "stats settings" | nc localhost 11211 > > End I got: > > ERROR > > Can anyone help? I am trying to benchmark memcached with YCSB but I > need to make sure it is running ok first. According to the default > configurations the log file exists in /var/log/memcached.log but it is > an empty file. There's no configuration or logging for memcached. You'll see the output right there where you ran it. use -vvv and don't background it and see what it tells you. Alternatively, use a memcached client, or run it without a pipe. I've seen echo|nc fail where nc itself didn't.
