Skip to content

Instantly share code, notes, and snippets.

@merolhack
Created October 2, 2015 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save merolhack/38df0e1653540252424b to your computer and use it in GitHub Desktop.
Save merolhack/38df0e1653540252424b to your computer and use it in GitHub Desktop.
REHL(CentOs & Oracle Linux): Instalación de Memcached
# Instalar Memcached del repositorio de REMI
yum --enablerepo=remi install memcached -y
# Iniciar servicio
service memcached start
# Iniciar servicio al iniciar el sistema
chkconfig memcached on
# Agregar regla a IPTables para el puerto 11211
iptables -I INPUT 5 -p tcp --dport 11211 -m state --state NEW,ESTABLISHED -j ACCEPT
# Guardar regla
service iptables save
# Configurar parámetros de Memcached
nano /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="256"
OPTIONS="-l 127.0.0.1"
# Reiniciar Memcached
service memcached restart
# Instalar módulo de PHP para la conexión con Memcached
yum --enablerepo=remi install php-pecl-memcached -y
# Reiniciar Apache
service httpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment