Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
# 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
You can’t perform that action at this time.