ubuntu14中 memcached安装与使用
第一步,先安装lib-event
下载lib-event 的包http://libevent.org/
下载完之后,解压安装
- ./configure –prefix=/usr (或 ./configure --program-prefix=/usr)
- make
- make install
第二步,安装memcached
下载memcached的包http://www.memcached.org/downloads
下载完之后。解压安装
1、./configure
2、make
3、make install
通过命令 ls -al /usr/local/bin/mem*检測是否成功安装
默认情况下memcached安装到/usr/local/bin下。
启动memcached server。在安装文件夹下启动
/usr/local/bin/memcached -d -m 10 -u root -l 127.0.0.1 -p 11211 -c 256 -P /tmp/memcached.pid
root@chiwei-VirtualBox:/home/chiwei/disk/service# ls
root@chiwei-VirtualBox:/home/chiwei/disk/service# ls -al /usr/local/bin/memcached
-rwxr-xr-x 1 root root 495978 7月 23 16:16 /usr/local/bin/memcached
root@chiwei-VirtualBox:/home/chiwei/disk/service# cd /usr/local/bin/me
-su: cd: /usr/local/bin/me: 没有那个文件或文件夹
root@chiwei-VirtualBox:/home/chiwei/disk/service# cd /usr/local/bin/
root@chiwei-VirtualBox:/usr/local/bin# ls
memcached
root@chiwei-VirtualBox:/usr/local/bin# ./memcached -d -c 1024 -l 127.0.0.1 -p 10101 -m 1024 -u root
root@chiwei-VirtualBox:/usr/local/bin# telnet 127.0.0.1 10101
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
stats
启动完之后,測试
telenet 127.0.0.1 10101
连接成功后,能够使用了
关闭memcached服务时,先查看tmp目录
root@chiwei-VirtualBox:~# ls
root@chiwei-VirtualBox:~# cd /tmp/
root@chiwei-VirtualBox:/tmp# ls
aptdaemon-WMCJDF qtsingleapp-chines-1a7c-3e8-lockfile
bjydJbU3Ux rpc%0049d%0043ache.data
deCgyLP7oi sms%0043ache.data
fcitx-socket-:0 sni-qt_chinese-calendar_2043-z3cOqS
hsperfdata_chiwei sni-qt_sogou-qimpanel_2248-fTSQLu
hsperfdata_root sogou-qimpanel:0.pid
indicator-china-weather-1000.pid sogou-qimpanelchiwei
jna ssh-Wcoq8f0CINjL
memcached.pid unity_support_test.1
qtsingleapp-chines-1a7c-3e8
有一个保存memcache的pid文件
kill `cat /tmp/memcached.pid` 键盘左上角的点符号
或者
root@chiwei-VirtualBox:~# ps -ef | grep memcached
root 24915 1584 0 16:36 ?
00:00:00 ./memcached -d -c 1024 -l 127.0.0.1 -p 10101 -m 1024 -u root
root 25011 10370 0 16:41 pts/15 00:00:00 grep --color=auto memcached
root@chiwei-VirtualBox:~# kill 24915
root@chiwei-VirtualBox:~# telnet 127.0.0.1 10101
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
root@chiwei-VirtualBox:~#
memcached详细的使用。參照http://www.cnblogs.com/czh-liyu/archive/2010/04/27/1722084.html
memcached 协议 点击打开链接
ubuntu14中 memcached安装与使用的更多相关文章
- .NET中MemCached使用介绍
阅读目录 1.MemCached是什么? 2.Window中MemCached安装 3.MemCached命令 4.简单示例 MemCached是什么 MemCached是一个自由开源,高性能,分布式 ...
- ubuntu14.04为安装fcitx卸载ibus后出现system setting (系统设置)中图标消失的问题
最近在系统为ubuntu14.04原版中,安装fictx.按照以往的经验应先把ibus卸载干净,否则可能会有冲突.因此惯性思维驱使,先卸载ibus,然后安装fcitx,但是问题出现了,system s ...
- Linux Memcached安装以及PHP扩展安装
一:安装libevent 由于memcached安装时,需要使用libevent类库,所以先安装libevent 1.下载 #wget http://www.monkey.org/~provos/ ...
- linux下memcached安装以及启动
1. 准备安装文件 下载memcached与libevent的安装文件 http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz(me ...
- Ubuntu14.0下安装Zend Framework 2
Ubuntu14.0下安装Zend Framework 2为了安装这个东西,忙活了快一天了,参考中文博客一直没有安装成功,有些博客的时间也是已经很早了,后来google看英文版的才安装成功,这里记录一 ...
- 【转】Memcached安装
解析:Memcached是什么? Memcached是由Danga Interactive开发的,高性能的,分布式的内存对象缓存系统,用于在动态应用中减少数据库负载,提升访问速度. 一.软件版本 ...
- [译]How to Install Node.js on Ubuntu 14.04 如何在ubuntu14.04上安装node.js
原文链接为 http://www.hostingadvice.com/how-to/install-nodejs-ubuntu-14-04/ 由作者Jacob Nicholson 发表于October ...
- 二、Ubuntu14.04下安装Hadoop2.4.0 (伪分布模式)
在Ubuntu14.04下安装Hadoop2.4.0 (单机模式)基础上配置 一.配置core-site.xml /usr/local/hadoop/etc/hadoop/core-site.xml ...
- DICOM:Ubuntu14环境下安装dcm4chee+oviyam2.1
背景: 之前博文DICOM:开源DICOM服务框架DCM4CHEE安装中曾介绍过在Windows7环境下安装部署dcm4chee.近期公司项目需要与部署到Linux系统的远端基于dcm4chee框架的 ...
随机推荐
- BZOJ 1082 暴搜
思路: //By SiriusRen #include <cstdio> #include <cstring> #include <algorithm> using ...
- Jesse's Code
题目描述 Jesse是个数学迷,他最喜欢研究“哥德巴赫猜想”,因此他的计算机密码也都采用素数. 但一直用同一个密码是不安全的,所以他要经常更换他的密码.但他只允许自己的密码中出现某些数字,且密码的每一 ...
- window下搭建Vue.Js开发环境
一.安装node.js.https://nodejs.org/en/download/ 最新包会自动安装npm 二.安装完node之后,npm包含的很多依赖包是部署在国外的,在天朝,大家都知道下载速度 ...
- 搭建专属于自己的Leanote云笔记本
搭建专属于自己的Leanote云笔记本 Leanote 依赖 MongoDB 作为数据存储,下面开始安装 MongoDB: 下载 MongoDB 进入 /home 目录,并下载 MongoDB: cd ...
- 洛谷 P3887 [GDOI2014]世界杯
P3887 [GDOI2014]世界杯 题目描述 3014年世界杯足球赛就要开始了!作为卫冕冠军中国足球队的教练,手下每位球员都是猛将,如何摆出最强的11人阵容也是一件幸福的烦恼事啊. 众所周知,足球 ...
- 发送邮件被退回,提示: Helo command rejected: Invalid name 错误
我自己配置的 postfix + dovecot server, 配置了outlook 后, 相同的账号. 在有的电脑上能收发成功, 在有的电脑上发送邮件就出现退信.提示 Helo command r ...
- 九度 题目1154:Jungle Roads
题目描写叙述: The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid mon ...
- selector-item属性
今天做的项目,发现通过键盘选中一个button以后,并没有出现button样式的变化,后来发现是selector里面缺少状态配置的原因.这里就顺便把用到的属性记录了下来,方便以后使用.当然它的属性很多 ...
- elasticsearch index 之 engine
elasticsearch对于索引中的数据操作如读写get等接口都封装在engine中,同时engine还封装了索引的读写控制,如流量.错误处理等.engine是离lucene最近的一部分. engi ...
- CSS3的属性选择器
CSS3中新增了许多选择器,今天零度给大家说说CSS3的属性选择器. 与CSS2相比,CSS3新增了3种属性选择器:[attr^=value].[attr$=value].[attr*=value]: ...