Centos中安装memcached
Centos中安装memcached问题
Centos中安装memcached问题
项目需要研究memcached,首先是环境准备。查看官网安装说明:http://code.google.com/p/memcached/wiki/NewInstallFromPackage
使用命令:
1
|
yum install memcached |
提示:
1
|
No package memcached available |
查看了下用户反馈信息,说是要安装redhat的EPEL包。
参见:http://www.cyberciti.biz/faq/rhel-fedora-centos-linux-enable-epel-repo/
首先去http://download.fedora.redhat.com/pub/epel/5/i386/查找最新的rpm包,比如http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
然后:
1
2
|
rpm -Uvh http: //download .fedora.redhat.com /pub/epel/5/i386/epel-release-5-4 .noarch.rpm yum repolist |
将会出现:
1
|
epel Extra Packages for Enterprise Linux 5 - enabled |
然后可以使用yum install memcached来安装memcached了。
#service memcached start
#chkconfig memcached on
#yum intall php-pecl-memcached