zoukankan      html  css  js  c++  java
  • 非root用户Memcached repcached安装

    安装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
  • 相关阅读:
    excel查找定位操作(for lutai)
    sqlserver检查sql执行时间
    excel操作for(lutai)
    android studio 3.0+发布签名apk注意的情况
    二维码
    svn文件合并
    生成wsdl代理c#代码
    LOCK_TIMEOUT
    支持chrome30下载文件
    miniui处理多重子表级联,一次性提交多表数据的ui要点
  • 原文地址:https://www.cnblogs.com/luoyanli/p/4433069.html
Copyright © 2011-2022 走看看