{"id":204,"date":"2012-06-15T22:23:40","date_gmt":"2012-06-15T22:23:40","guid":{"rendered":"https:\/\/shan.info\/new\/centos-memcached-php-5-2-17-ius-repo\/"},"modified":"2012-06-15T22:23:40","modified_gmt":"2012-06-15T22:23:40","slug":"centos-memcached-php-5-2-17-ius-repo","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/centos-memcached-php-5-2-17-ius-repo\/","title":{"rendered":"centos memcached php 5.2.17 ius repo"},"content":{"rendered":"<p>1 \u5b89\u88c5 IUS repo \u00a0\u81ea\u52a8\u6253\u5f00 \u00a0rpel<\/p>\n<p>\u00a0<\/p>\n<p>2.<\/p>\n<p>yum install -y memcached<\/p>\n<p>\u00a0<\/p>\n<p>3.<\/p>\n<p>yum install -y gcc make\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>4.<\/p>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\">service memcached start<\/span><br style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\" \/> <span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\">chkconfig memcached on<\/span><\/p>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px;\">pecl install memcache<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\">5<\/span><\/p>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\">php.ini<\/span><\/span><\/p>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\">\u6dfb\u52a0\u00a0<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<blockquote style=\"border-width: 0px 0px 0px 4px; border-left-style: solid; border-left-color: #dddddd; outline: 0px; vertical-align: baseline; margin: 20px 10px 10px 5px; padding: 0px 5px; text-align: left; font-family: 'Courier New', 'Courier New', monospace; color: #2c2c29;\">\n<p style=\"border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; margin-top: 1px; margin-bottom: 15px; padding: 2px; font-size: 1.2em;\">extension=&#8221;memcache.so&#8221;<\/p>\n<p style=\"border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent; margin-top: 1px; margin-bottom: 15px; padding: 2px; font-size: 1.2em;\">\u00a0<\/p>\n<\/blockquote>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h2 style=\"border-width: 0px 0px 1px; border-bottom-style: dashed; border-bottom-color: #dddddd; margin: 10px 0px; padding: 5px 0px; outline: none; color: #0080ff; font-size: 1.6em; font-weight: normal; font-family: Oswald, sans-serif; line-height: 21px; text-align: justify;\">Configure Memcached<\/h2>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\"><span style=\"font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">The most important value to configure is\u00a0<\/span><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none; font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">CACHESIZE<\/strong><span style=\"font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">. For example following configuration shows\u00a0<\/span><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none; font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">512MB<\/strong><span style=\"font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">\u00a0memory for Memcached. Edit \/etc\/sysconfig\/memcached file, enter:<\/span><\/span><\/span><\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"># <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">vi \/etc\/sysconfig\/memcached<\/strong>\r\n<\/pre>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\"><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none; font-family: Lora, georgia, serif; line-height: 21px; text-align: justify; color: #004b80; font-size: 16px;\">Sample Output:<\/strong><\/span><\/span><\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">PORT=\"11211\" USER=\"memcached\" MAXCONN=\"1024\" CACHESIZE=\"<strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none; color: red;\">512<\/strong>\" OPTIONS=\"\"<\/strong>\r\n<\/pre>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\"><span style=\"font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">For high traffic websites you need to increase the following values:<\/span><\/span><\/span><\/p>\n<ol style=\"border: 0px; margin: 10px; padding: 0px; outline: none; font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">\n<li style=\"border: 0px; margin: 5px; padding: 0px; outline: none; list-style: circle;\"><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">MAXCONN<\/strong>\u00a0: Set\u00a0<strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">1024<\/strong>\u00a0max simultaneous connections. For high traffic websites increase this value as per requirement.<\/li>\n<li style=\"border: 0px; margin: 5px; padding: 0px; outline: none; list-style: circle;\"><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">CACHESIZE<\/strong>\u00a0: Set\u00a0<strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">512MB<\/strong>\u00a0max memory. For high traffic websites you can set it to\u00a0<strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">1GB<\/strong>.<\/li>\n<li style=\"border: 0px; margin: 5px; padding: 0px; outline: none; list-style: circle;\"><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">OPTIONS<\/strong>\u00a0: Set server\u00a0<strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">IP<\/strong>\u00a0address so that Apache\/php\/nginx based server can connect to the server.<\/li>\n<\/ol>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\"><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none; font-family: Lora, georgia, serif; line-height: 21px; text-align: justify; color: #004b80; font-size: 16px;\">My sample updated file:<\/strong><\/span><\/span><\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">PORT=\"11211\" USER=\"memcached\" MAXCONN=\"4096\" CACHESIZE=\"<strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none; color: red;\">512<\/strong>\" OPTIONS=\"-l 192.168.1.1\"<\/strong>\r\n<\/pre>\n<p>\u00a0<\/p>\n<h2 style=\"border-width: 0px 0px 1px; border-bottom-style: dashed; border-bottom-color: #dddddd; margin: 10px 0px; padding: 5px 0px; outline: none; color: #0080ff; font-size: 1.6em; font-weight: normal; font-family: Oswald, sans-serif; line-height: 21px; text-align: justify;\">How To Start and Stop Memcached<\/h2>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\"><span style=\"font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">Try the all following commands:<\/span><\/span><\/span><\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"># <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">chkconfig memcached on<\/strong>\r\n# <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">\/etc\/init.d\/memcached start<\/strong>\r\n# <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">\/etc\/init.d\/memcached stop<\/strong>\r\n# <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">\/etc\/init.d\/memcached restart<\/strong>\r\n# <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">\/etc\/init.d\/memcached status<\/strong>\r\n<\/pre>\n<p>\u00a0<\/p>\n<h2 style=\"border-width: 0px 0px 1px; border-bottom-style: dashed; border-bottom-color: #dddddd; margin: 10px 0px; padding: 5px 0px; outline: none; color: #0080ff; font-size: 1.6em; font-weight: normal; font-family: Oswald, sans-serif; line-height: 21px; text-align: justify;\">Verify Memcached is Running and Working<\/h2>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\"><span style=\"font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">Run following command to verify if it is running or not.<\/span><\/span><\/span><\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"># <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">netstat -tulpn | grep :11211<\/strong>\r\n<\/pre>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\"><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none; font-family: Lora, georgia, serif; line-height: 21px; text-align: justify; color: #004b80; font-size: 16px;\">Sample Output:<\/strong><\/span><\/span><\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\"> tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 19796\/memcached tcp 0 0 :::11211 :::* LISTEN 19796\/memcached udp 0 0 0.0.0.0:11211 0.0.0.0:* 19796\/memcached udp 0 0 :::11211 :::* 19796\/memcached <\/strong>\r\n<\/pre>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\"><span style=\"font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">Use the memcached-tool to get general stats of server:<\/span><\/span><\/span><\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"># <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">memcached-tool 192.168.1.1 stats<\/strong>\r\n<\/pre>\n<p>\u00a0<\/p>\n<h2 style=\"border-width: 0px 0px 1px; border-bottom-style: dashed; border-bottom-color: #dddddd; margin: 10px 0px; padding: 5px 0px; outline: none; color: #0080ff; font-size: 1.6em; font-weight: normal; font-family: Oswald, sans-serif; line-height: 21px; text-align: justify;\">Configure Firewall for Memcached<\/h2>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\"><span style=\"font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">Protect memcached server by allowing access to your own servers. Edit<\/span><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none; font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">\/etc\/sysconfig\/iptables<\/strong><span style=\"font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">\u00a0and append the following rules.<\/span><\/span><\/span><\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">## only accept connection to tcp\/udp port 11211 if ip is between 192.168.1.1 and 192.168.1.10 ##<\/strong>\r\n# <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">iptables -A INPUT -p tcp --destination-port 11211 -m state --state NEW -m iprange --src-range 192.168.1.1-192.168.1.10 -j ACCEPT<\/strong>\r\n# <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">iptables -A INPUT -p udp --destination-port 11211 -m state --state NEW -m iprange --src-range 192.168.1.1-192.168.1.10 -j ACCEPT<\/strong>\r\n<\/pre>\n<p>\u00a0<\/p>\n<h2 style=\"border-width: 0px 0px 1px; border-bottom-style: dashed; border-bottom-color: #dddddd; margin: 10px 0px; padding: 5px 0px; outline: none; color: #0080ff; font-size: 1.6em; font-weight: normal; font-family: Oswald, sans-serif; line-height: 21px; text-align: justify;\">Restart Iptables Firewall<\/h2>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\"><span style=\"font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">Type the following command to restart iptables.<\/span><\/span><\/span><\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"># <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">service iptables restart<\/strong>\r\n## OR ##\r\n# <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">\/etc\/init.d\/iptables restart<\/strong>\r\n<\/pre>\n<p>\u00a0<\/p>\n<h2 style=\"border-width: 0px 0px 1px; border-bottom-style: dashed; border-bottom-color: #dddddd; margin: 10px 0px; padding: 5px 0px; outline: none; color: #0080ff; font-size: 1.6em; font-weight: normal; font-family: Oswald, sans-serif; line-height: 21px; text-align: justify;\">Test Remote Connection<\/h2>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\"><span style=\"font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">Try the following command from remote server to test Memcached is listening or not.<\/span><\/span><\/span><\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"># <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">echo stats | netstat 192.168.1.1 -tulpn | grep :11211<\/strong>\r\n<\/pre>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\"><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none; font-family: Lora, georgia, serif; line-height: 21px; text-align: justify; color: #004b80; font-size: 16px;\">Sample Output:<\/strong><\/span><\/span><\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"><strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\"> tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 19796\/memcached tcp 0 0 :::11211 :::* LISTEN 19796\/memcached udp 0 0 0.0.0.0:11211 0.0.0.0:* 19796\/memcached udp 0 0 :::11211 :::* 19796\/memcached <\/strong>\r\n<\/pre>\n<p>\u00a0<\/p>\n<h2 style=\"border-width: 0px 0px 1px; border-bottom-style: dashed; border-bottom-color: #dddddd; margin: 10px 0px; padding: 5px 0px; outline: none; color: #0080ff; font-size: 1.6em; font-weight: normal; font-family: Oswald, sans-serif; line-height: 21px; text-align: justify;\">Install Memcached PHP Module<\/h2>\n<p>\u00a0<\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"># <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">yum install php-pecl-memcache<\/strong>\r\n<\/pre>\n<p>\u00a0<\/p>\n<h2 style=\"border-width: 0px 0px 1px; border-bottom-style: dashed; border-bottom-color: #dddddd; margin: 10px 0px; padding: 5px 0px; outline: none; color: #0080ff; font-size: 1.6em; font-weight: normal; font-family: Oswald, sans-serif; line-height: 21px; text-align: justify;\">Install Memcached Perl Module<\/h2>\n<p>\u00a0<\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"># <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">yum install perl-Cache-Memcached<\/strong>\r\n<\/pre>\n<p>\u00a0<\/p>\n<h2 style=\"border-width: 0px 0px 1px; border-bottom-style: dashed; border-bottom-color: #dddddd; margin: 10px 0px; padding: 5px 0px; outline: none; color: #0080ff; font-size: 1.6em; font-weight: normal; font-family: Oswald, sans-serif; line-height: 21px; text-align: justify;\">Install Memcached Python Module<\/h2>\n<p>\u00a0<\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"># <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\"> yum install python-memcached<\/strong>\r\n<\/pre>\n<p>\u00a0<\/p>\n<h2 style=\"border-width: 0px 0px 1px; border-bottom-style: dashed; border-bottom-color: #dddddd; margin: 10px 0px; padding: 5px 0px; outline: none; color: #0080ff; font-size: 1.6em; font-weight: normal; font-family: Oswald, sans-serif; line-height: 21px; text-align: justify;\">Restart Web Server<\/h2>\n<p>\u00a0<\/p>\n<pre style=\"border: 1px dashed #2f6fab; margin: 1em 0px; padding: 1em; outline: none; background-color: #f9f9f9; font-family: Lora, georgia, serif; font-size: 14px; line-height: 20px; overflow: auto; color: #434340; text-align: justify;\"># <strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">\/etc\/init.d\/httpd restart<\/strong>\r\n## OR ##\r\n<strong style=\"border: 0px; margin: 0px; padding: 0px; outline: none;\">service httpd restart<\/strong>\r\n<\/pre>\n<p><span style=\"color: #2c2c29; font-family: 'Courier New', 'Courier New', monospace; font-size: 13px; text-align: left;\"><span style=\"color: #2c2c29; font-family: Tahoma; font-size: 13px; text-align: left;\"><span style=\"font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">For more information visit\u00a0<\/span><a href=\"http:\/\/www.memcached.org\/\" target=\"_blank\" style=\"border: 0px; margin: 0px; padding: 0px; outline: none; color: #33707e; font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">memcached<\/a><span style=\"font-family: Lora, georgia, serif; font-size: 14px; line-height: 21px; text-align: justify;\">\u00a0project.<\/span><\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 \u5b89\u88c5 IUS repo \u00a0\u81ea\u52a8\u6253\u5f00 \u00a0rpel \u00a0 2. yum install -y memcached \u00a0 3. yum install -y gcc make\u00a0 \u00a0 4. service memcached start chkconfig memcached on pecl install memcache \u00a0 5 php.ini \u6dfb\u52a0\u00a0 \u00a0 extension=&#8221;memcache.so&#8221; \u00a0 \u00a0 \u00a0 Configure Memcached The most important value to configure is\u00a0CACHESIZE. For example following configuration shows\u00a0512MB\u00a0memory for Memcached. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-204","post","type-post","status-publish","format-standard","hentry","category-centos-6"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/comments?post=204"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/204\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}