Linux

Step to install Memcached in Centos/RHEL/Ubuntu

In this tutorial, we explain the step to install Memcached in Centos RHEL and Ubuntu.

Memcache is a memory caching system and it is one of the popular and open source technology used for temporarily storing information which is basically used by the database.

Step to install Memcached in Centos RHEL and Ubuntu

The main purpose is used to boost the speed of application/website which is a heavily used the database. Memcached runs in the memory itself and it doesn’t write to disk, this is why Memcache is very fast.

Memcached can be used with various web servers like Apache, Nginx etc, also many programming languages like PHP, Python, Ruby have Memcached libraries. In this tutorial, we will see the steps to install Memcached in Centos RHEL and Ubuntu machine.

Pre-Requisites to install Memcached on Linux:

If you want to install Memcached with yum command then you need to install yum repository for Memcache

Install EPEL Repo for Linux – CentOS/RHEL

Memcache repo for CentOS 7 or RHEL 7

Memcache repo for CentOS 6 / RHEL (64 Bit)

Memcache repo for CentOS 6 / RHEL (32 Bit)

Memcache Installation steps on RHEL/CentOS

Once you have to install the required repository then you can install memcached and required dependency using yum.

The command to autostart Memcached service on boot

Memcache Installation steps on Ubuntu

For Ubuntu we don’t need any repository, you can directly install Memcached with below command

How to Configuration Memcached

Command to see how to Memcached information

If we need to change or modify the default settings for Memcached, we can do that using its configuration file.

Change / Modify the default configuration of memcached:

For CentOS/RHEL:

For Ubuntu

Memcache Default port number is 11211

You can also do the max connection and cache size and all in the same configuration file.

After changes done in the Memcached configuration file, restart the Memcached service.

Related Articles

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close

Adblock Detected

Please consider supporting us by disabling your ad blocker