RHEL / CentOS 6 Linux Install Memcached High Performance Distributed Memory Object Cache Server

‮th‬tps://www.lautturi.com
RHEL / CentOS 6 Linux Install Memcached High Performance Distributed Memory Object Cache Server

To install the Memcached server on a Red Hat Enterprise Linux (RHEL) or CentOS 6 system, you can follow these steps:

  1. Install the epel-release package to enable the Extra Packages for Enterprise Linux (EPEL) repository. This repository contains additional packages that are not included in the default RHEL or CentOS package repositories. You can install the epel-release package by running the following command:
sudo yum install epel-release
  1. Install the Memcached server and the necessary dependencies by running the following command:
sudo yum install memcached libmemcached-devel
  1. Start the Memcached server by running the following command:
sudo service memcached start
  1. Enable the Memcached server to start automatically when the system boots by running the following command:
sudo chkconfig memcached on
  1. To use the Memcached server with Python applications, you can install the pymemcache Python module by running the following command:
pip install pymemcache
  1. To use the Memcached server with PHP applications, you can install the php-pecl-memcache PHP extension by running the following command:
sudo yum install php-pecl-memcache
  1. Restart the Apache HTTP server to apply the changes by running the following command:
sudo service httpd restart

You can find more information about installing and using the Memcached server on RHEL or CentOS systems in the Memcached documentation or by searching online.

Created Time:2017-10-30 14:27:13  Author:lautturi