用yum安装Memcache到Centos 6.3 更新版本32/64位上

Memcached是高性能的,分布式的内存对象缓存系统,用于在动态应用中减少数据库负载,提升访问速度。

安装memcache,

我们的第一步就是导入第三方软件仓库RPMForge ,安装方法如下:

32位

#wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

64位

#wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
#rpm -ivh rpmforge-release-*.rpm

查找相关软件包

#yum search memcache

有了,现在可以安装了

#yum -y install –enablerepo=rpmforge memcached php-pecl-memcache

验证一下安装结果

#memcached -h
#php -m|grep memcache

设置开机启动

#chkconfig memcached on

启动memcached

#service memcached start

参考文章:
http://pkgs.repoforge.org/rpmforge-release/
http://www.php.net/manual/zh/memcache.set.php

相关文章:

1、Memcache安装配置优化篇
https://www.onexin.net/memcache-installation-and-configuration-optimization-articles/

2、Memcache类使用方法及参数详解
https://www.onexin.net/memcache-class-uses-methods-and-arguments-detailed/

3、Memcache命令及参数用法
https://www.onexin.net/memcache-command-line-usage/

4、Memcache基础篇 Memcache和mysql交互流程操作原理
https://www.onexin.net/memcache-the-basis-of-articles-memcache-and-mysql-interactive-processes-operating-principle/

转载请注明出处:https://www.onexin.net/yum-install-memcache-to-centos-6-3-3264/

Leave a Reply

Your email address will not be published. Required fields are marked *