概述CentOS Memcached安装及运行检测

系统 Linux
CentOS Memcached安装前需要先安装Libevent: # curl -O http://www.monkey.org/~provos/libevent-1.4.9-stable.tar.gz

CentOS Memcached安装系统能提高电脑更方便的使用性能。下面就这就来讲术CentOS Memcached安装。CentOS Linux使用了RHEL的源代码,但是由于这些源代码是Red Hat公司自由发布的,因此CentOS Linux的发布是完全合法的,CentOS Linux的使用者也不会遇到任何的版权问题。CentOS系统上CentOS Memcached安装。

1.CentOS Memcached安装前需要先安装Libevent:
# curl -O http://www.monkey.org/~provos/libevent-1.4.9-stable.tar.gz
# tar zxf libevent-1.4.9-stable.tar.gz
# cd libevent-1.4.9-stable
# ./configure
# make
# make install

2.继续CentOS Memcached安装:
# curl -O http://www.danga.com/memcached/dist/memcached-1.2.7.tar.gz
# tar zxf memcached-1.2.7.tar.gz
# cd memcached-1.2.7
# ./configure
# make
# make install

3.CentOS Memcached安装接着在当前用户的.bash_profile中添加
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH

4.CentOS Memcached运行
# memcached -m 512 -u nobody -vv
测试时候发现会出现以下错误信息:
“/usr/local/memcached/bin/memcached: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory”
错误的原因是未在系统中注册Libevent. 解决方法如下:
# vi /etc/ld.so.conf.d/libevent-i386.conf
在VI中输入以下一行内容:
/usr/local/lib/
最后不要忘了
# ldconfig

5.CentOS Memcached运行
# memcached -m 512 -u nobody -vv
<6 server listening
<7 server listening
<8 send buffer was 109568, now 268435456
<8 server listening (udp)
<9 send buffer was 109568, now 268435456
<9 server listening (udp)
CentOS Memcached运行正常。
以上介绍CentOS Memcached安装及运行检测。

【编辑推荐】

  1. CentOS lighttpd安装及网站目录配置
  2. CentOS4.2安装相关配置软件与介绍编译php
  3. CentOS系统安装创建在虚拟机中
  4. CentOS extmail安装配置apache与extman安装
  5. CentOS编辑安装amavisd-new与修改内容
责任编辑:佚名 来源: CSDN
相关推荐

2013-06-26 15:58:33

CentOS 5.6Memcached

2010-03-01 16:51:53

CentOS VMwa

2011-06-02 10:07:28

iostatlinux

2022-12-23 14:05:41

2010-01-13 11:17:50

2010-01-12 16:17:30

Fedora yum

2010-01-14 14:32:07

CentOS ligh

2010-08-25 14:37:38

snort入侵检测

2010-02-06 14:47:18

CentOS inst

2009-08-05 17:54:04

ASP.NET运行模式

2010-01-13 10:14:45

2012-08-08 10:10:30

CentOS 6操作系统

2016-10-24 09:40:53

CentOS高级入侵检测

2009-08-17 16:34:21

.NET分布式缓存Memcached

2022-10-20 12:07:20

2017-04-24 18:10:27

DrupalCentOSFedora

2021-07-09 07:40:06

CentOS 7GitLab开源

2016-09-27 16:07:10

AxcientVeritasZerto

2010-09-06 10:30:37

CSS框

2011-09-06 14:59:20

UbuntuMemcached
点赞
收藏

51CTO技术栈公众号