Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:lsmcd:installation [2018/01/23 09:00]
qtwrk [Debian/Ubuntu]
litespeed_wiki:lsmcd:installation [2019/11/27 14:34] (current)
Robert Perper [Centos / RHEL]
Line 9: Line 9:
 <​code>​ <​code>​
 yum groupinstall "​Development Tools" yum groupinstall "​Development Tools"
-yum install autoconf automake zlib-devel openssl-devel expat-devel pcre-devel+yum install autoconf automake zlib-devel openssl-devel expat-devel pcre-devel ​libmemcached-devel cyrus-sasl*
 </​code>​ </​code>​
  
Line 15: Line 15:
 Run the following commands from an elevated shell terminal: Run the following commands from an elevated shell terminal:
 <​code>​ <​code>​
-sudo apt-get install build-essential zlib1g-dev libexpat1-dev openssl libssl-dev libsasl2-dev libpcre3-dev -y+sudo apt-get install ​git build-essential zlib1g-dev libexpat1-dev openssl libssl-dev libsasl2-dev libpcre3-dev -y
 </​code>​ </​code>​
  
Line 36: Line 36:
 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. 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.
  
-===== Install =====+===== Install=====
 To install LSMCD after it has been compiled, run the following commands from the same elevated shell terminal: To install LSMCD after it has been compiled, run the following commands from the same elevated shell terminal:
 +====Centos / RHEL====
 <​code>​ <​code>​
-make install+sudo make install
 </​code>​ </​code>​
 +====Debian/​Ubuntu====
 +<​code>​
 +sudo make install
 +sudo chown -R username /​usr/​local/​lsmcd</​code>​
 +
 +
 +LSMCD should now be installed. ​
 +
 +Now you will have to edit ''/​usr/​local/​lsmcd/​conf/​node.conf''​ to correctly set the IP address to bind.
 +
 +This is the example conf file for 127.0.0.1:​11211 which is included in the release:
 +
 +<​code>​Repl.HeartBeatReq=30
 +Repl.HeartBeatRetry=3000
 +Repl.MaxTidPacket=2048000
 +Repl.GzipStream=YES
 +Repl.LbAddrs=127.0.0.1:​12340
 +Repl.ListenSvrAddr=127.0.0.1:​12340
 +REPL.DispatchAddr=127.0.0.1:​5501
 +RepldSockPath=/​tmp/​repld.usock
 +CACHED.PRIADDR=127.0.0.1:​11000
 +
 +CACHED.ADDR=127.0.0.1:​11211
 +#​CACHED.ADDR=UDS:///​tmp/​lsmcd.sock
 +#default is 8, it can be bigger depending on cache data amount
 +Cached.Slices=8
 +Cached.Slice.Priority.0=100
 +Cached.Slice.Priority.1=100
 +Cached.Slice.Priority.2=100
 +Cached.Slice.Priority.3=100
 +Cached.Slice.Priority.4=100
 +Cached.Slice.Priority.5=100
 +Cached.Slice.Priority.6=100
 +Cached.Slice.Priority.7=100
 +
 +Cached.ShmDir=/​dev/​shm/​lsmcd
 +#If you change the UseSasl or DataByUser configuration options you need to remove the ShmDir folder and contents.
 +#​Cached.UseSasl=true
 +#​Cached.DataByUser=true
 +#​Cached.Anonymous=false
 +#​Cached.UserSize=1000
 +#​Cached.HashSize=500000
 +#​CACHED.MEMMAXSZ=0
 +#​CACHED.NOMEMFAIL=false
 +
 +##this is the global setting, no need to have per slice configuration. ​
 +User=nobody
 +Group=nobody
 +#depends CPU core
 +CachedProcCnt=4
 +CachedSockPath=/​tmp/​cached.usock.
 +#​TmpDir=/​tmp/​lsmcd
 +LogLevel=notice
 +#​LogLevel=dbg_medium
 +LogFile=/​tmp/​lsmcd.log</​code>​
  
-That’s it! LSMCD should now be installed. ​ 
  
 +If you wish to use SASL, remove the '#'​ comment from the line ''#​Cached.UseSasl=true''​
 ===== Start ===== ===== Start =====
 There are various different ways to start/stop LSMCD. Here are just a few ways. There are various different ways to start/stop LSMCD. Here are just a few ways.
  • Admin
  • Last modified: 2018/01/23 09:00
  • by qtwrk