HostOnNet Blog

Memcached

To install memcached on Ubuntu, run

apt install memcached

Configuration file

vi /etc/memcached.conf

Restart memcached

service memcached restart

Check Memcached Stats

To check stats for memcached installation, run

telnet 127.0.0.1 11211

Now type in

stats

Example

root@ip-198-12-157-208 [~]# telnet 127.0.0.1 11211
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
stats
STAT pid 1364
STAT uptime 1335224
STAT time 1510763250
STAT version 1.4.4
STAT pointer_size 64
STAT rusage_user 18.794142
STAT rusage_system 8.901646
STAT curr_connections 5
STAT total_connections 7
STAT connection_structures 6
STAT cmd_get 0
STAT cmd_set 0
STAT cmd_flush 0
STAT get_hits 0
STAT get_misses 0
STAT delete_misses 0
STAT delete_hits 0
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT auth_cmds 0
STAT auth_errors 0
STAT bytes_read 34
STAT bytes_written 787
STAT limit_maxbytes 536870912
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT threads 4
STAT conn_yields 0
STAT bytes 0
STAT curr_items 0
STAT total_items 0
STAT evictions 0
END
quit
Connection closed by foreign host.
root@ip-198-12-157-208 [~]# 

Install Memcached On Cpanel Server


Posted in Linux