01.安装Memcached
1.安装Memcached
[lizhiwei@localhost libevent]$ tar -zxvf libevent-2.0.22-stable.tar.gz[lizhiwei@localhost Memcached]$ tar -zxvf memcached-1.4.24.tar.gz
[lizhiwei@localhost libevent-2.0.22-stable]$ cd /home/lizhiwei/SoftWare/libevent/libevent-2.0.22-stable[lizhiwei@localhost libevent-2.0.22-stable]$ ./configure -prefix=/home/lizhiwei/InstallSoft/libevent[lizhiwei@localhost libevent-2.0.22-stable]$ make[lizhiwei@localhost libevent-2.0.22-stable]$ make install
[lizhiwei@localhost libevent-2.0.22-stable]$ cd /home/lizhiwei/SoftWare/Memcached/memcached-1.4.24[lizhiwei@localhost memcached-1.4.24]$ ./configure -prefix=/home/lizhiwei/InstallSoft/memcached -with-libevent=/home/lizhiwei/InstallSoft/libevent/[lizhiwei@localhost memcached-1.4.24]$ make[lizhiwei@localhost memcached-1.4.24]$ make install
2.启动Memcached
[lizhiwei@localhost memcached]$ cd /home/lizhiwei/InstallSoft/memcached/bin/[lizhiwei@localhost bin]$ lltotal 356-rwxr-xr-x. 1 lizhiwei lizhiwei 360894 Oct 1 20:52 memcached[lizhiwei@localhost bin]$ ./memcached -d -m 10 -u lizhiwei -l 127.0.0.1 -p 12000 -c 256 -P /tmp/memcached.pid[lizhiwei@localhost bin]$ ps -ef | grep memcachedlizhiwei 24004 1 0 20:59 ? 00:00:00 ./memcached -d -m 10 -u lizhiwei -l 127.0.0.1 -p 12000 -c 256 -P /tmp/memcached.pidlizhiwei 24018 14869 0 21:00 pts/2 00:00:00 grep memcached[lizhiwei@localhost bin]$ cat /tmp/memcached.pid24004[lizhiwei@localhost bin]$
[lizhiwei@localhost bin]$ ps -ef | grep memcachedlizhiwei 24004 1 0 20:59 ? 00:00:00 ./memcached -d -m 10 -u lizhiwei -l 127.0.0.1 -p 12000 -c 256 -P /tmp/memcached.pidlizhiwei 24069 14869 0 21:07 pts/2 00:00:00 grep memcached[lizhiwei@localhost bin]$ kill -9 24004[lizhiwei@localhost bin]$ ps -ef | grep memcachedlizhiwei 24072 14869 0 21:07 pts/2 00:00:00 grep memcached[lizhiwei@localhost bin]$
[lizhiwei@localhost ~]$ telnet 127.0.0.1 11211Trying 127.0.0.1...Connected to 127.0.0.1.Escape character is '^]'.set name 0 64 5abcdeSTOREDget nameVALUE name 0 5abcdeENDquitConnection closed by foreign host.[lizhiwei@localhost ~]$
01.安装Memcached的更多相关文章
- Centos6.5安装memcached
1.检查libevent 首先检查系统中是否安装了libevent(Memcache用到了libevent这个库用于Socket的处理). # rpm -q libevent libevent-1.4 ...
- centos6 yum 安装memcached
centos6 yum 安装memcached - 像块石头 - 博客园http://www.cnblogs.com/rockee/archive/2012/08/01/2619160.html yu ...
- Mac(Linux)上安装memcached步骤
Mac上安装memcached类似于在Linux平台上安装memcached. 主要需要做两块: 一.安装libevent库: 二.安装memcached; 一.安装libevent库 libeven ...
- NoSql1 在Linux(CentOS)上安装memcached及使用
前言: 今天是初五,生活基本要从过年的节奏中回归到正常的生活了,所以想想也该想想与工作有关的事情了.我之前在工作中会经常使用memcached和redis,但是自己一直没有时间系统的好好看 ...
- Linux 服务器 安装 memcached
linux centos 一.memcached的安装 1.下载 memcached-1.4.33.tar.gz.libevent-2.0.22-stable.tar.gz 安装 memcached ...
- 搭建LNAMP环境(七)- PHP7源码安装Memcached和Memcache拓展
上一篇:搭建LNAMP环境(六)- PHP7源码安装MongoDB和MongoDB拓展 一.安装Memcached 1.yum安装libevent事件触发管理器 yum -y install libe ...
- 在Windows中安装Memcached
Memcached是一个高并发的内存键值对缓存系统,它的主要作用是将数据库查询结果,内容,以及其它一些耗时的计算结果缓存到系统内存中,从而加速Web应用程序的响应速度. Memcached最开始是作为 ...
- CentOS6.3编译安装Memcached
要用到如下源码包: /usr/local/src/memcached/libevent-2.0.21-stable.tar.gz /usr/local/src/memcached/memcached- ...
- CentOS6.3编译安装Memcached的PHP客户端memcache
在安装Memcached的PHP客户端memcache之前,可先看下先前的工作笔记: PHP5不重新编译,如何安装自带的未安装过的扩展,如soap扩展? 安装PHP的memcache扩展 cd /us ...
随机推荐
- CentOS编译安装lamp
LAMP环境搭建(编译安装CentOS+httpd2.2+mysql5.5+php5.4) 首先准备以下压缩包 <ignore_js_op> (1)编译安装apache 1.配置防火墙,开 ...
- .NET程序员爱上网站[整理]
1.博客园(代码改变世界) http://www.cnblogs.com 2.开源中国社区(开源软件发现.使用和交流平台) http://www.oschina.net 3.CSDN(中国最大的IT社 ...
- Service(一)----->简单计算
xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:t ...
- C语言-L Buffer is too small && 0 解决方法
问题如下: 问题出在程序语句(见下): 其中,字符串p1和p2分别指向某个字符串,p是定义的一个字符数组.问题出现在对strlen()的使用,这个函数计算的字符串长度是不包括'\0'的,所以在设置第二 ...
- 【Windows】如何判断当前鼠标是否按下左键或右键
在delphi中,很多窗体和控件的鼠标事件里面已经将鼠标按键状态封装好传给响应事件的函数,所以这种情况直接使用就可以,但在某些时候,我们没有这些事件可以处理时,想判断鼠标按键是否按下的状态,就需要借助 ...
- DevExpress 中 WaitForm 使用
第一步: 在程序中拖入: splashScreenManager1 控件 在需要处理的地方 使用以下语句来打开 WaitForm窗体(当然需要在 splashScreenManager1控件中绑定一个 ...
- JDBC基础二
1.配置文件:dbinfo.properties driverClass=com.mysql.jdbc.Driver url=jdbc:mysql://127.0.0.1:3306/test user ...
- MapReduce shuffle阶段详解
在Mapreduce中,Shuffle过程是Mapreduce的核心,它分布在Mapreduce的map阶段和reduce阶段,共可分为6个详细的阶段: 1).Collect阶段:将MapTask的结 ...
- Why java main function is declared as static type?
一个暂且说的过去的解释 The method is static because otherwise there would be ambiguity: which constructor shoul ...
- Python学习教程(learning Python)--2.3.4Python函数返回值
本节讨论Python函数返回值问题. Python和C语言一样,也可以在函数结束时返回一个值.但在定义自己的Python函数时,是不需要指定返回值数据类型的,这和Python不关心变量的数据类型是一致 ...