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

非root用户Memcached repcached安装

时间:2015-04-16 21:24:53      阅读:275      评论:0      收藏:0      [点我收藏+]

标签:

安装memcached前先要确定系统是否安装了gcc;
1、解压安装包:
tar -zxf memcached-1.2.8-repcached-2.2.tar.gz
2、编译:
系统应安装了libevent,libevent-1.4.13-stable.tar;
./configure --enable-replication --prefix=/home/taiyue/repcached --with-libevent=/home/taiyue/libevent
 报错:checking build system type... Invalid configuration `i686-pc-linux-‘: machine `i686-pc-linux‘ not recognized
./configure --enable-replication --build=i686-pc-linux-gnu
 报错:configure: error: no acceptable C compiler found in $PATH //缺少gcc编译器
通过界面进行gcc的安装。
./configure --enable-replication --build=i686-pc-linux-gnu成功之后:make
报错:-bash: make: command not found;需要安装make。
make install(必须使用root才能安装???)
3、运行:
主:/home/taiyue/repcached/bin/memcached -v -d -u usd -p 11211
从:/home/taiyue/repcached/memcached -v -d -u usd -x 127.0.0.1 -p 11213
红色的目录一定要带上,因为使用非root账户安装的软件没有在系统环境变量地下,因而直接使用memcached命令将提示command not
found。
主宕掉以后重启:
/home/taiyue/repcached/memcached -v -d -u usd -x 127.0.0.1 -p 11211

非root用户Memcached repcached安装

标签:

原文地址:http://www.cnblogs.com/luoyanli/p/4433069.html

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