memcached command not found

In this troubleshooting guide we learn how to fix memcached command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

memcached: command not found

or when using sudo you get the following error message

sudo: memcached: command not found

Solutions to memcached: command not found

How To Fix memcached: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu memcached is provided by memcached package.

memcached is:

Danga Interactive developed memcached to enhance the speed of LiveJournal.com, a site which was already doing 20 million+ dynamic page views per day for 1 million users with a bunch of webservers and a bunch of database servers. memcached dropped the database load to almost nothing, yielding faster page load times for users, better resource utilization, and faster access to the databases on a memcache miss.

memcached optimizes specific high-load serving applications that are designed to take advantage of its versatile no-locking memory access system. Clients are available in several different programming languages, to suit the needs of the specific application. Traditionally this has been used in mod_perl apps to avoid storing large chunks of data in Apache memory, and to share this burden across several machines.

To fix this problem, we can install more using the command below.

sudo apt-get -y install memcached

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install memcached.

sudo apt -y install memcached

Or if you have aptitude installed you can use the following command.

sudo aptitude install memcached

Summary

In this tutorial we learn how to fix memcached command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.