Created
October 2, 2015 16:56
-
-
Save merolhack/38df0e1653540252424b to your computer and use it in GitHub Desktop.
REHL(CentOs & Oracle Linux): Instalación de Memcached
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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