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框架的 ...
随机推荐
- dotnet 命令的使用
dotnet --info PS E:\GitHub\KerryJiang\SuperSocket> dotnet --info.NET Command Line Tools (2.1.4) P ...
- poj--2007--Scrambled Polygon(数学几何基础)
Scrambled Polygon Time Limit: 1000MS Memory Limit: 30000KB 64bit IO Format: %I64d & %I64u Su ...
- 129.C++面试一百题(1-51)
- 消息推送学习一、原生Socket的使用
消息推送也是客户端和服务器连接然后进行交互的一种形式,但是不同于HTTP的连接,这种连接需要长时间的进行,当有消息时可以及时推送到客户端.除此之外还有多个用户,可能需要针对其身份进行不同的推送等等要求 ...
- Atcoder Grand Contest 107 A Biscuits
A - Biscuits Time limit : 2sec / Memory limit : 256MB Score : 200 points Problem Statement There are ...
- 彻底分析虚拟视频驱动vivi(三)
在Ubuntu系统中接上usb摄像头设备时,系统会自动安装对应的usb设备驱动程序.我们现在要使用自己编译的vivi驱动,该怎么办呢? 1.先安装系统自带的vivi驱动和它所依赖的所有驱动:sudo ...
- 【Codeforces Round #459 (Div. 2) C】The Monster
[链接] 我是链接,点我呀:) [题意] 在这里输入题意 [题解] 左括号看成1 右括号看成-1 设置l,r表示前i个数的和的上下界 遇到 左括号 l和r同时加1 遇到右括号 同时减1 遇到问号 因为 ...
- 从2014年D2前端技术论坛看前端发展趋势
上周六有幸參加了在杭州阿里巴巴西溪园区举办的2014年D2前端技术论坛和晚上的酒会.实地感受了一下阿里巴巴前端开发的技术氛围和影响力.整体上看这次D2规模还是挺大的,国内前端的知名大牛基本上都到了. ...
- 从Java到C++——常量的使用规则
常量是一种标识符,它的值在执行期间恒定不变.C语言用 #define来定义常量(称为宏常量). C++ 语言除了 #define外还能够用const来定义常量(称为const常量). 一.为什么须要常 ...
- mongodb官网文档阅读笔记:write concern
write concern保证了mongodb写操作的级别,不同的write concern设置相应了不同级别的写操作.设置的级别越高.那么写操作的性能的持久化做得越好,可是写性能也就越差. mong ...