Compiling/Installing LSMCD

LiteSpeed Memcached (“LSMCD”) is LiteSpeed's persistent memcache-compatible cache daemon. It’s performance and interface are similar to the popular Memcached, with the addition of high-availability replication. In LSMCD, cache data is persistent on both single and multiple box setups -- preserving all cache data through updates and instances of server failure.


There are certain package requirements to compile and install LSMCD. LSMCD relies on these packages to work properly. The required packages differ slightly between distributions.


Run the following commands from an elevated shell terminal:

yum groupinstall "Development Tools"
yum install autoconf automake zlib-devel openssl-devel expat-devel pcre-devel


Run the following commands from an elevated shell terminal:

apt-get install build-essential zlib1g-dev libexpat1-dev openssl


There are multiple ways to download LSMCD. Here a few options:

Note If using wget or curl, be sure to extract the archive with the following command: unzip


To compile LSMCD, run the following commands from an elevated shell terminal:

cd lsmcd
./configure CFLAGS=" -O3" CXXFLAGS=" -O3"

LSMCD should now be built. If there were any errors please double check that all package requirements were installed. If package requirements were not the issue, please post on our forums for further assistance.


To install LSMCD after it has been compiled, run the following commands from the same elevated shell terminal:

make install

That’s it! LSMCD should now be installed.


There are various different ways to start/stop LSMCD. Here are just a few ways.


systemctl start lsmcd
systemctl stop lsmcd
systemctl enable lsmcd
systemctl disable lsmcd


service lsmcd start
service lsmcd stop
chkconfig lsmcd on
chkconfig lsmcd off


/usr/local/lsmcd/bin/lsmcdctrl start
/usr/local/lsmcd/bin/lsmcdctrl stop


A quick way to test if LSMCD is running is to run the following from shell:

telnet 11211

Be sure to look into configuring it next!

litespeed_wiki/lsmcd/installation.txt · Last modified: 2017/11/11 18:15 by qtwrk