How to Install Memcached on Ubuntu 14.04 LTS

How to Install Memcached on Ubuntu 14.04 LTS
Memcached is a dispersed, high-performance, in-memory caching system that is mostly made use of to accelerate websites that make hefty use data sources. It could nevertheless be made use of to keep things of any type of kind. Virtually every prominent CMS has a plugin or component to make use of memcached, as well as lots of shows languages have a memcached collection, consisting of PHP, Perl, Ruby, as well as Python. Memcached runs in memory and also is therefore rather quick, because it does not should compose information to disk.

Pre-Flight Check
– These directions are planned particularly for mounting Memcached on a solitary Ubuntu 14.04 LTS node.
– I’ll be functioning from a Liquid Web Core Managed Ubuntu 14.04 LTS web server, and also I’ll be visited as origin.

Action # 1: Install Memcached

As an issue of finest technique we’ll upgrade our plans:

apt-get update

After that mounting Memcached and also associated plans is currently as straightforward as running simply one command::

apt-get install memcached

Action # 2: Configuration of the Memcached Installation

Utilize the adhering to command to check out info on the memcached command:

memcached -h

The default arrangement data could be discovered at:


When begun, Memcached will certainly begin on port 11211 by default each the default arrangement data:

# Default connection port is 11211
-p 11211

To transform the port, just alter the number in the arrangement data.

INSTANCE: If I intended to run Memcached on port 1337, with 4GB of memory, and also enable an optimum of 2,000 links, I would certainly transform the config data as adheres to.

Allow’s modify the arrangement documents:

vim /etc/memcached.conf

To the following:

-p 1337
-m 4096
-c 2000

Departure as well as conserve the setup documents, and afterwards reactivate Memcached

solution memcached reboot

عن piv

اضف رد

لن يتم نشر البريد الإلكتروني . الحقول المطلوبة مشار لها بـ *