Install Memcached on AlmaLinux 9 / RHEL 9 / Ubuntu 22.04+
Evans
Last Update 2 bulan yang lalu
Memcached is a high-performance, in-memory caching system used to speed up dynamic websites and applications by reducing database load.
It is supported on most modern Linux distributions and integrates easily with CMS platforms and programming languages such as PHP, Python, and Node.js.
🐧 For AlmaLinux 9 / RHEL 9:
Memcached defaults:
Port: 11211
User: memcached
Max Connections: 1024
Cache Size: 64MB
AlmaLinux / RHEL: /etc/sysconfig/memcached
Ubuntu: /etc/memcached.conf
Update the values as needed:
Update or add the following:
✅ Commands for all systems:
To check the status:
🛑 To stop Memcached:
✅ Recap
OS | Config File | |
AlmaLinux 9 / RHEL | dnf | /etc/sysconfig/memcached |
Ubuntu 22.04+ | apt | /etc/memcached.conf |
Memcached is now installed, configured, and enabled to start at boot on your updated Linux system.