How to set MEMCACHED_SERVERS environmental variable for memcstat

Solution 1:

if you don't want to set an environment variable:

#> MEMCACHED_SERVERS='127.0.0.1' memcstat

otherwise:

#> export MEMCACHED_SERVERS='127.0.0.1'
#> memcstat