{"id":5445,"date":"2015-12-19T21:32:56","date_gmt":"2015-12-19T13:32:56","guid":{"rendered":"http:\/\/rmohan.com\/?p=5445"},"modified":"2015-12-19T21:33:20","modified_gmt":"2015-12-19T13:33:20","slug":"install-memcached-centos-7","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=5445","title":{"rendered":"Install Memcached \u2013 CentOS 7"},"content":{"rendered":"<p><strong>Install Memcached \u2013 CentOS 7<\/strong><\/p>\n<p>yum install memcached<\/p>\n<p>Edit the config located at \/etc\/sysconfig\/memcached<\/p>\n<p>add neww<\/p>\n<p>PORT=&#8221;11211&#8243;<br \/>\nUSER=&#8221;memcached&#8221;<br \/>\nMAXCONN=&#8221;1024&#8243;<br \/>\nCACHESIZE=&#8221;640&#8243;<br \/>\nOPTIONS=&#8221;-l 127.0.0.1&#8243;<\/p>\n<p>Make sure you set the OPTIONS section as above, also increase the CACHESIZE according to your needs<\/p>\n<p>Start it up:<br \/>\nsystemctl start memcached<\/p>\n<p>Add it to startup:<\/p>\n<p>systemctl enable memcached<br \/>\nAdd memcache to PHP \u2013 CentOS 7<\/p>\n<p>ssue the following at shell:<br \/>\nyum install php-pecl-memcache<\/p>\n<p>Now add memcache to PHP, create a file at: \/etc\/php.d\/memcache.ini and the following to it<br \/>\nextension=memcache.so<\/p>\n<p>Restart apache<\/p>\n<p>systemctl restart httpd<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Memcached \u2013 CentOS 7<\/p>\n<p>yum install memcached<\/p>\n<p>Edit the config located at \/etc\/sysconfig\/memcached<\/p>\n<p>add neww<\/p>\n<p>PORT=&#8221;11211&#8243; USER=&#8221;memcached&#8221; MAXCONN=&#8221;1024&#8243; CACHESIZE=&#8221;640&#8243; OPTIONS=&#8221;-l 127.0.0.1&#8243;<\/p>\n<p>Make sure you set the OPTIONS section as above, also increase the CACHESIZE according to your needs<\/p>\n<p>Start it up: systemctl start memcached<\/p>\n<p>Add it to startup:<\/p>\n<p>systemctl enable memcached Add memcache to [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5445"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5445"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5445\/revisions"}],"predecessor-version":[{"id":5447,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5445\/revisions\/5447"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}