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
  • 相关阅读:
    C语言-const和volatile深度分析
    C语言循环语句工程用法
    C分支语句的工程用法
    函数对象分析
    关于protel电路图导入word
    单片机程序编写与下载
    关于Protel输出PDF原理图
    关于定时器、外部中断的一些理解
    锁存、译码介绍
    关于Proteus电压设置
  • 原文地址:https://www.cnblogs.com/luoyanli/p/4433069.html
Copyright © 2011-2022 走看看