linux_wiki:memcached

Differences

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

Link to this comparison view

Next revision
Previous revision
linux_wiki:memcached [2016/03/27 23:05]
billdozor created
linux_wiki:memcached [2019/05/25 23:50] (current)
Line 16: Line 16:
  
   - Memcached is in EL 7's base repo. If you are using EL 5/6, you will need to add the EPEL repo.   - 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]]+    - Add the [[linux_wiki:repos#epel|EPEL repo]]
   - Install memcached<code bash>yum install memcached</code>   - Install memcached<code bash>yum install memcached</code>
   - Start and enable the service   - Start and enable the service
Line 30: Line 30:
   * Edit the config file<code bash>vim /etc/sysconfig/memcached   * Edit the config file<code bash>vim /etc/sysconfig/memcached
  
-PORT="11211"+# Daemon
 USER="memcached" USER="memcached"
-MAXCONN="1024" +  
-CACHESIZE="64+# Reserved Cache in MBs 
-OPTIONS=""</code> +CACHESIZE="2048" 
-    * Defaults above +  
-      * PORT => The port memcached will listen on +# Memcached Options - Listen on localhost only 
-      * USER => The user that the memcached daemon will run as +OPTIONS="-l 127.0.0.1
-      * MAXCONN => Max simultaneous connections + 
-      * **CACHESIZE** => Use this memory size for memcached caching, in Megabytes +# Memcached Options - Clear out to listen on any interface 
-        * Probably the only one to modify +#OPTIONS="" 
-      * OPTIONS => Set other daemon options (see man memcaced)+ 
 +# 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 ===== ===== 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). 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.+    See pages on [[linux_wiki:firewall_firewall-cmd|Firewall-cmd]] or [[linux_wiki:firewall_iptables|IPTables]] for syntax details.
  
 ---- ----
  
  • linux_wiki/memcached.1459134345.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)