<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[libevent - All your code are belong to us]]></title><description><![CDATA[Thoughts, stories and ideas on code and technology in general.<br>Blog title inspired by <a href="https://en.wikipedia.org/wiki/All_your_base_are_belong_to_us" target="_blank">this meme</a>]]></description><link>https://allurcode.com/</link><image><url>https://allurcode.com/favicon.png</url><title>libevent - All your code are belong to us</title><link>https://allurcode.com/</link></image><generator>Ghost 4.48</generator><lastBuildDate>Tue, 09 Jun 2026 12:18:40 GMT</lastBuildDate><atom:link href="https://allurcode.com/tag/libevent/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[How to install memcached on CentOS]]></title><description><![CDATA[<!--kg-card-begin: markdown--><h3 id="installdependancy">Install dependancy</h3>
<p>Before we install <strong>memcached</strong> we need a dependency library <strong>libevent</strong>. Check for latest stable version at <a href="https://monkey.org/~provos/libevent/">https://monkey.org/~provos/libevent/</a></p>
<pre><code class="language-bash">cd /usr/local/src
wget http://monkey.org/~provos/libevent-1.4.13-stable.tar.gz
tar -xzvf libevent-1.4.13-stable.tar.gz
cd libevent-1.4.13-stable
./configure --prefix=</code></pre>]]></description><link>https://allurcode.com/how-to-install-memcached-on-centos/</link><guid isPermaLink="false">5b7b0aa2b52b43084c9ea119</guid><category><![CDATA[bash]]></category><category><![CDATA[CentOS]]></category><category><![CDATA[libevent]]></category><category><![CDATA[Linux]]></category><category><![CDATA[memcached]]></category><dc:creator><![CDATA[Wojtek]]></dc:creator><pubDate>Sat, 13 Mar 2010 01:28:50 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><h3 id="installdependancy">Install dependancy</h3>
<p>Before we install <strong>memcached</strong> we need a dependency library <strong>libevent</strong>. Check for latest stable version at <a href="https://monkey.org/~provos/libevent/">https://monkey.org/~provos/libevent/</a></p>
<pre><code class="language-bash">cd /usr/local/src
wget http://monkey.org/~provos/libevent-1.4.13-stable.tar.gz
tar -xzvf libevent-1.4.13-stable.tar.gz
cd libevent-1.4.13-stable
./configure --prefix=/usr/local
make
make install
cd ..
</code></pre>
<h3 id="installmemcached">Install memcached</h3>
<p>Check for latest stable version at <a href="https://memcached.org/">https://memcached.org/</a></p>
<pre><code class="language-bash">wget http://memcached.googlecode.com/files/memcached-1.4.4.tar.gz
tar -xzvf memcached-1.4.4.tar.gz
cd memcached-1.4.4
LDFLAGS=&apos;-Wl,--rpath /usr/local/lib&apos;
./configure --prefix=/usr/local
make
make install
</code></pre>
<p>More information about LDFLAGS <a href="https://en.wikipedia.org/wiki/Linker">https://en.wikipedia.org/wiki/Linker</a></p>
<h3 id="runmemcachedasadaemon">Run memcached as a daemon</h3>
<p>Basic options: d = daemon, m = memory, u = user, l = IP to listen to, p = port</p>
<pre><code class="language-bash">memcached -u root -d
</code></pre>
<p>or</p>
<pre><code class="language-bash">memcached -u root -d -m 512 -l 127.0.0.1 -p 11211
</code></pre>
<p>To stop daemon type</p>
<pre><code class="language-bash">pkill memcached
</code></pre>
<p>Now we&#x2019;re off to installing <a href="https://allurcode.com/how-to-run-memcache-in-php/">php extension memcache</a>.</p>
<!--kg-card-end: markdown-->]]></content:encoded></item></channel></rss>