码迷,mamicode.com
首页 > 系统相关 > 详细

在centos6.8系统上安装memcached服务

时间:2018-01-09 20:18:52      阅读:212      评论:0      收藏:0      [点我收藏+]

标签:body   linux目录   .gz   strong   centos   event   tar.gz   bsp   vim   

第一步:下载libevent

[root@static src]# wget http://soft.51yuki.cn/libevent-2.0.21-stable.tar.gz

第二步:安装libevent

[root@static src]# tar xf libevent-2.0.21-stable.tar.gz
[root@static src]# cd libevent-2.0.21-stable
[root@static libevent-2.0.21-stable]# ./configure --prefix=/usr/local/libevent-2.0.21 && make && make install

由于安装libevent库没有安装在标准的linux目录库下,需要在ld.so.conf文件下添加如下内容

[root@static ~]# vim /etc/ld.so.conf

include ld.so.conf.d/*.conf
/usr/local/libevent-2.0.21/lib/

[root@static ~]# ldconfig

 

第三步:下载并安装memcached服务

[root@static src]# wget http://soft.51yuki.cn/memcached-1.4.35.tar.gz

[root@static src]# tar xf  memcached-1.4.35.tar.gz

[root@static ~]# cd /usr/local/src/memcached-1.4.35
[root@static memcached-1.4.35]# ./configure --prefix=/usr/local/memcached-1.4.35 --with-libevent=/usr/local/libevent-2.0.21/ && make && make install

第四步:查看安装后的目录结构

[root@static memcached-1.4.35]# tree /usr/local/memcached-1.4.35/
/usr/local/memcached-1.4.35/
├── bin
│   └── memcached
├── include
│   └── memcached
│   └── protocol_binary.h
└── share
└── man
└── man1
└── memcached.1

 

在centos6.8系统上安装memcached服务

标签:body   linux目录   .gz   strong   centos   event   tar.gz   bsp   vim   

原文地址:https://www.cnblogs.com/51yuki/p/memcached_install.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!