{"id":1085,"date":"2018-10-21T04:17:25","date_gmt":"2018-10-21T04:17:25","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=1085"},"modified":"2018-10-23T00:50:32","modified_gmt":"2018-10-23T00:50:32","slug":"how-to-install-memcached-on-centos","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/21\/how-to-install-memcached-on-centos\/","title":{"rendered":"How To Install Memcached on CentOS"},"content":{"rendered":"<p>Memcached is a high-performance caching system that is primarily used to speed up sites that rely on databases. It is an in-memory system for storing any data that could be from database calls or page requests. To read more about Memcached you can view the <a href=\"https:\/\/github.com\/memcached\/memcached\/wiki\">project wiki on github<\/a><\/p>\n<p>Clean out the repository:<\/p>\n<p>yum clean all<\/p>\n<p>Make sure everything is to date:<\/p>\n<p>yum -y update<\/p>\n<p>Install memcached and libevent-devel:<\/p>\n<p>yum -y install memcached libevent-devel<\/p>\n<p>Verify the configuration<\/p>\n<p>nano \/etc\/sysconfig\/memcached<\/p>\n<p>You should see the following configuration information:<\/p>\n<p>PORT=&#8221;11211&#8243;<br \/>\nUSER=&#8221;memcached&#8221;<br \/>\nMAXCONN=&#8221;1024&#8243;<br \/>\nCACHESIZE=&#8221;64&#8243;<br \/>\nOPTIONS=&#8221;&#8221;<\/p>\n<p>Start memcached:<\/p>\n<p>systemctl start memcached<\/p>\n<p>Make sure it persists on reboot:<\/p>\n<p>systemctl enable memcached<\/p>\n<p>To make sure it is running you can telnet to the port you ran it on and type stats<\/p>\n<p>$ telnet localhost 11211<br \/>\nTrying ::1&#8230;<br \/>\nConnected to localhost.<br \/>\nEscape character is &#8216;^]&#8217;.<br \/>\nstats<br \/>\nSTAT pid 6331<br \/>\nSTAT uptime 43199874<br \/>\nSTAT time 1500745928<br \/>\nSTAT version 1.4.10<br \/>\nSTAT libevent 1.4.13-stable<br \/>\nSTAT pointer_size 64<br \/>\nSTAT rusage_user 645.228910<br \/>\nSTAT rusage_system 1121.041575<br \/>\nSTAT curr_connections 10<br \/>\nSTAT total_connections 11<br \/>\nSTAT connection_structures 11<br \/>\nSTAT reserved_fds 20<br \/>\nSTAT cmd_get 0<br \/>\nSTAT cmd_set 0<br \/>\nSTAT cmd_flush 0<br \/>\nSTAT cmd_touch 0<br \/>\nSTAT get_hits 0<br \/>\nSTAT get_misses 0<br \/>\nSTAT delete_misses 0<br \/>\nSTAT delete_hits 0<br \/>\nSTAT incr_misses 0<br \/>\nSTAT incr_hits 0<br \/>\nSTAT decr_misses 0<br \/>\nSTAT decr_hits 0<br \/>\nSTAT cas_misses 0<br \/>\nSTAT cas_hits 0<br \/>\nSTAT cas_badval 0<br \/>\nSTAT touch_hits 0<br \/>\nSTAT touch_misses 0<br \/>\nSTAT auth_cmds 0<br \/>\nSTAT auth_errors 0<br \/>\nSTAT bytes_read 7<br \/>\nSTAT bytes_written 0<br \/>\nSTAT limit_maxbytes 1073741824<br \/>\nSTAT accepting_conns 1<br \/>\nSTAT listen_disabled_num 0<br \/>\nSTAT threads 4<br \/>\nSTAT conn_yields 0<br \/>\nSTAT hash_power_level 16<br \/>\nSTAT hash_bytes 524288<br \/>\nSTAT hash_is_expanding 0<br \/>\nSTAT expired_unfetched 0<br \/>\nSTAT evicted_unfetched 0<br \/>\nSTAT bytes 0<br \/>\nSTAT curr_items 0<br \/>\nSTAT total_items 0<br \/>\nSTAT evictions 0<br \/>\nSTAT reclaimed 0<br \/>\nEND<\/p>\n<p>That is it for installing memcached on CentOS.<\/p>\n<p>Jul 24, 2017LinuxAdmin.io<\/p>\n<p><a href=\"https:\/\/linuxadmin.io\/memcached-install-centos-7\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Memcached is a high-performance caching system that is primarily used to speed up sites that rely on databases. It is an in-memory system for storing any data that could be from database calls or page requests. To read more about Memcached you can view the project wiki on github Clean out the repository: yum clean &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/21\/how-to-install-memcached-on-centos\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How To Install Memcached on CentOS&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1085","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=1085"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1085\/revisions"}],"predecessor-version":[{"id":1355,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1085\/revisions\/1355"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=1085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=1085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=1085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}