centos 安装memcache

1、由于memcached是基于libevent的,因此需要安装libevent,libevent-devel

  1. 方法一:# yum install libevent libevent-devel -y(一键安装的形式)
  2. 方法二:1>  tar zxvf libevent-2.0.17-stable.tar.gz    2>./configure --prefix=/usr/local/memcache && make && make install

2、下载并解压memcached-1.4.5

memcached官方网站是:http://memcached.org/

  1. # cd /usr/local
  2. # mkdir memcache(将压缩包放在该文件夹下)
  3. # cd /usr/local/memcache
  4. # tar -xvzf memcached-1.4.5.tar.gz

3、编译安装memcached-1.4.5

  1. # cd memcached-1.4.5
  2. # ./configure --prefix=/usr/local/memcache
  3. # make
  4. # make install

4、是否正常?Telnet上去看看

  1. telnet 192.168.40.151 11211
然后输入 stats 查看Memcached服务是否正常然后quit退出

参考资料:http://snowolf.iteye.com/blog/1447348

centos 安装memcache

时间: 2024-08-01 11:28:24

centos 安装memcache的相关文章

centos 安装memcache服务后memcahce本机连接Permission

自己手动在虚拟机下装了下memcache,整个过程真是充满波折,本身用php5.3安装memcache扩展就麻烦很多,无法通过yum直接安装,安装方法详见http://chenwei.me/blog/server/69.html,接下来安装memcache服务,安装成功后,telnet可以成功,不过好像不是立即成功生效,过一会用stats才会有详细显示. 本机用 <?php $mem = new Memcache; $mem->connect(‘192.168.124.129′,11211)

centos安装memcache与telnet

####################linux下安装memcache过程######################http://www.cnblogs.com/zgx/archive/2011/08/10/2134097.htmllinux 下安装memcahe过程:1.下载memcache文件:memcache官网:http://memcached.org/downloadswget http://memcached.org/files/memcached-1.4.22.tar.gz若果

centos安装memcache

1.安装Memcached前需要先安装libevent,首先用wget下载libevent: wget http://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gz tar zxf libevent-1.4.13-stable.tar.gz cd libevent-1.4.13-stable ./configure make && make install 2.安装Memcached tar zxf memcached-1.4.5.

CentOS环境PHP安装memcache扩展

安装memcache yum install memcached 安装libmemcached库 yum install libmemcached PHP安装Memcache扩展 [email protected]] wget -c http://pecl.php.net/get/memcache-3.0.8.tgz [root@blog.phpha.com] tar -zxvf memcache-3.0.8.tgz [root@blog.phpha.com] cd memcache-3.0.8

Centos安装Memcached和(Nginx)Memcache扩展详细教程

下载memadmin,下载地址:http://www.junopen.com/memadmin/ 并在IIS新建站点. 测试地址:http://wap.yousawang.com/mem , 1.重启 apache service httpd restrat /etc/init.d/httpd stop /etc/init.d/httpd start 2.重启 mysql service mysqld restart /etc/init.d/mysqld stop /etc/init.d/mys

CentOS安装卸载memcache及JAVA示例

原文地址:http://www.cnblogs.com/zhongshengzhen/ 先安装libevent,memcached依赖libevent的lib [[email protected]_64_81_centos download]#  wget http://www.monkey.org/~provos/libevent-1.2.tar.gz [[email protected]_64_81_centos download]#  tar zxvf libevent-1.2.tar.g

CentOS安装memcached及配置php的memcache扩展

遇到的问题: 这个问题主要是linux服务器安装memcached服务后,phpinfo信息没有memcache扩展,所以主要是给php安装memcache扩展,教程中是安装memcache扩展,我认为应该是安装memcached扩展,关于这一点不是很明白. 教程链接1:http://blog.csdn.net/hel12he/article/details/45537059 链接2:http://blog.csdn.net/poechant/article/details/6802312 链接

linux centos 安装php的memcache扩展

一.centos6.5 yum安装php的memcache扩展 搜索memcache yum search memcache 有了,现在可以安装了 yum -y install memcached memcached-devel php-pecl-memcache 验证一下安装结果 memcached -h php -m|grep memcache 启动memcached /sbin/servive memcached start 测试 <?php $mem = new Memcache; $m

Centos5.5 安装memcache

#下载libeventhttp://libevent.org/#下载memcahcedhttp://memcached.org/downloads #安装libeventshell>tar -zxvf libevent-2.0.21-stable.tar.gzshell>cd libevent-2.0.21-stableshell>./configure --prefix=/usr/local/libeventshell>make && make install#安