<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[运维进行时]]></title> 
<link>https://blog.liuts.com/index.php</link> 
<description><![CDATA[互联网运维与架构]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[运维进行时]]></copyright>
<item>
<link>https://blog.liuts.com/post/107/</link>
<title><![CDATA[Linux下安装Memcached]]></title> 
<author>root &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Memcached]]></category>
<pubDate>Thu, 22 May 2008 10:01:30 +0000</pubDate> 
<guid>https://blog.liuts.com/post/107/</guid> 
<description>
<![CDATA[ 
	<strong>下载安装</strong><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>wget wget http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gz<br/>wget http://www.monkey.org/~provos/libevent-1.4.6-stable.tar.gz<br/>tar -zxvf libevent-1.4.6-stable.tar.gz<br/>cd libevent-1.4.6-stable<br/>./configure && make && make install<br/>vi /etc/ld.so.conf<br/>新增"/usr/local/lib"<br/>tar -zxvf memcached-1.2.6.tar.gz<br/>cd memcached-1.2.6<br/>./configure --prefix=/usr/local/memcache<br/>make && make install<br/>cd /usr/local/memcache/bin<br/>./memcached -d -m 10 -u root -l 192.168.100.4 -p 12000 -c 256 -P /tmp/memcached.pid<br/></div></div><br/><strong>参数说明</strong><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>-d选项是启动一个守护进程<br/>-m是分配给Memcache使用的内存数量，单位是MB，我这里是10MB<br/>-u是运行Memcache的用户，我这里是root<br/>-l是监听的服务器IP地址<br/>-p是设置Memcache监听的端口,最好是1024以上的端口<br/>-c选项是最大运行的并发连接数，默认是1024，按照你服务器的负载量来设定<br/>-P是设置保存Memcache的pid文件<br/></div></div><br/>Tags - <a href="https://blog.liuts.com/tags/memcached/" rel="tag">memcached</a>
]]>
</description>
</item><item>
<link>https://blog.liuts.com/post/99/</link>
<title><![CDATA[Cacti平台添加MEMCACHE监控]]></title> 
<author>root &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Memcached]]></category>
<pubDate>Thu, 22 May 2008 08:36:44 +0000</pubDate> 
<guid>https://blog.liuts.com/post/99/</guid> 
<description>
<![CDATA[ 
	<strong>参考官方</strong><br/><a href="http://dealnews.com/developers/cacti/memcached.html" target="_blank">http://dealnews.com/developers/cacti/memcached.html</a><br/><strong>步骤</strong><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>1、下载安装python for memecached api(python-memcached-latest.tar.gz)。<br/>2、下载cacti-memcached-<ver>.tar.gz(模板文件.xml及脚本文件.py)<br/>3、导入模板添加memcached.py到cacti/scripts<br/>4、修改模板:<br/>Data Input Methods->Memcached - Statistics->Input String的值:'python' edit to '/usr/local/bin/python'<br/></div></div><br/>Tags - <a href="https://blog.liuts.com/tags/cacti/" rel="tag">cacti</a> , <a href="https://blog.liuts.com/tags/memcache/" rel="tag">memcache</a>
]]>
</description>
</item>
</channel>
</rss>