Install Memcached Ubuntu 24.04 Step by Step

mahabub.devs3
Mahabubur Rahman
Published on Jan, 28 2025 1 min read 0 comments
Text Image

Here are some Methods to install Memcached on Ubuntu 24.04:

Method 1: Using APT (Advanced Package Tool)

1. Update System Packages:

sudo apt update && sudo apt upgrade -y

2. Install Memcached:

sudo apt install memcached libmemcached-tools -y

3. Verify Installation:

memcached -h

Method 2: Compiling from Source

1. Install Dependencies:

sudo apt update
sudo apt install build-essential libevent-dev -y

2. Download Source Code:

wget http://memcached.org/latest -O memcached.tar.gz
tar -zxvf memcached.tar.gz
cd memcached-*

3. Compile and Install:

./configure
make
sudo make install

4. Verify Installation:

memcached -h

Configuration

Edit Configuration File:

sudo nano /etc/memcached.conf

Adjust settings like memory allocation, connection settings, etc.

Restart Memcached:

sudo systemctl restart memcached

Testing

Check Service Status:

sudo systemctl status memcached

Connection Testing:

telnet localhost 11211

These steps should help you get Memcached up and running on your Ubuntu 24.04 system.

0 Comments