Memcached : Install2026/06/25 |
|
Install Memcached which is the distributed memory caching System. |
|
| [1] | Install Memcached. |
|
root@dlp:~# apt -y install memcached
|
| [2] | Configure Memcached. |
|
root@dlp:~#
vi /etc/memcached.conf # line 23 : max cache memory size (MB) -m 64 # line 26 : listening port -p 11211 # line 30 : process owner -u memcache # line 35 : listens on localhost by default like follows # if you'd like to use memcached from other Hosts, change to own IP address or to [0.0.0.0], [::] -l 127.0.0.1 -l ::1 # line 39 : max connections (default is 1024) # -c 1024root@dlp:~# systemctl restart memcached |
| [3] | If UFW is enabled and also you want to connect to Memcached from remote hosts, allow service port. |
|
root@dlp:~# ufw allow 11211/tcp Rule added Rule added (v6) |
| Sponsored Link |
|
|