Skip to main content

How to install Memcached on CentOS 8

Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.

dnf --enablerepo=powertools install memcached libmemcached libmemcached-devel
sudo mount -o remount,exec /tmp
pecl install memcached
sudo mount -o remount,noexec /tmp
sudo touch /usr/local/php81/lib/php.conf.d/memcached.ini && echo extension=memcached.so > /usr/local/php81/lib/php.conf.d/memcached.ini
systemctl start memcached
systemctl enable memcached
systemctl restart php-fpm74

 

nano /etc/sysconfig/memcached

OPTIONS="-l 127.0.0.1,::1"

 

Geef een reactie

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *