User Tools

Site Tools


installing_memcached

Differences

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

Link to this comparison view

installing_memcached [2010/02/10 02:07]
k2patel
installing_memcached [2020/08/10 02:35]
Line 1: Line 1:
-====== Installing Memcached ====== 
  
-To install memcached on freebsd simply follow steps below. 
- 
-<code bash> 
-cd /​usr/​ports/​databases/​memcached 
-make install clean 
-</​code>​ 
- 
-After installation we need to activate it in rc.conf. 
- 
-<code bash | /​etc/​rc.conf>​ 
-memcached_enable="​YES"​ 
-memcached_flags="​-m 256 -l 127.0.0.1 -p 11211" 
-memcached_user="​xyz"​ 
-</​code>​ 
- 
-Above code break down in following way. 
- 
-<code text> 
--m : memory you want to allocate. 
--l : address you want to listen on. - specify external ip if you want to centralize memcache between few server. 
--p : specify ports for the memcached 
--u : User as owner of memcached process 
-</​code>​ 
- 
-Testin memcached status. 
- 
-<code bash> 
-echo stats | nc 127.0.0.1 11211 
-</​code>​ 
-You are good to go. 
installing_memcached.txt ยท Last modified: 2020/08/10 02:35 (external edit)