memcached

From SkyPHP

Jump to: navigation, search

Install

Install the rpmforge rpm

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

Attempt to install memcached

yum -y install memcached

If this fails with No package memcached available. Then you probably need to enable rpmforge-extras...

Edit the file /etc/yum.repos.d/rpmforge.repo to contain

[rpmforge-extras]
name = RHEL $releasever - RPMforge.net - extras
baseurl = http://apt.sw.be/redhat/el5/en/$basearch/extras
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge-extras
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge-extras
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

Try again to install memcached

yum -y install memcached


System Startup

Add the following line to /etc/rc.d/rc.local in order to enable the memached server to start on system startup

/etc/init.d/memcached start


References

http://www.sohailriaz.com/how-to-install-memcached-with-memcache-php-extension-on-centos-5x/

Personal tools