linux_wiki:memcached

Differences

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

Link to this comparison view

linux_wiki:memcached [2018/03/23 16:36]
billdozor [Secure Memcached]
linux_wiki:memcached [2019/05/25 23:50]
Line 1: Line 1:
-====== Memcached ====== 
- 
-**General Information** 
- 
-Memcached is a "distributed memory object caching system". Useful for speeding up web applications by caching database lookups. 
- 
-Official Site: http://www.memcached.org/ 
- 
-**Checklist** 
-  * Distro(s): Enterprise Linux 
-  * Repo: [[linux_wiki:repos#epel|EPEL]] (if using EL 5/6) 
- 
----- 
- 
-====== Install Memcached ====== 
- 
-  - Memcached is in EL 7's base repo. If you are using EL 5/6, you will need to add the EPEL repo. 
-    - Add the [[linux_wiki:repos#epel|EPEL repo]] 
-  - Install memcached<code bash>yum install memcached</code> 
-  - Start and enable the service 
-    - EL 6<code bash>service memcached start 
-chkconfig memcached on</code> 
-    - EL 7<code bash>systemctl start memcached 
-systemctl enable memcached</code> 
- 
----- 
- 
-====== Configure Memcached ====== 
- 
-  * Edit the config file<code bash>vim /etc/sysconfig/memcached 
- 
-# Daemon 
-USER="memcached" 
-  
-# Reserved Cache in MBs 
-CACHESIZE="2048" 
-  
-# Memcached Options - Listen on localhost only 
-OPTIONS="-l 127.0.0.1" 
- 
-# Memcached Options - Clear out to listen on any interface 
-#OPTIONS="" 
- 
-# Networking 
-PORT="11211" 
-MAXCONN="1024"</code> 
-    * OPTIONS => Set other daemon options (see man memcaced) 
-  * If you made any config file changes, restart the service. 
- 
-===== Secure Memcached ===== 
- 
-Memcached does not have any application authentication, so you should configure the memcached server with firewall rules to only allow certain sources to utilize it on tcp and udp port 11211 (the default port). 
-  * Either listen locally, or setup firewall rules to protect the cache. 
- 
-See pages on [[linux_wiki:firewall_firewall-cmd|Firewall-cmd]] or [[linux_wiki:firewall_iptables|IPTables]] for syntax details. 
- 
----- 
  
  • linux_wiki/memcached.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)