• AeroSpike环境搭建


    Aerospike在linux环境上的搭建
    1.linux环境准备:
      虚拟机安装:https://www.cnblogs.com/yxth/p/11806879.html(亲测有用)
    2.启动虚拟机报错,Intel VT-x处于禁用状态:
      解决方案:https://blog.csdn.net/qq_39729296/article/details/87781442(亲测有效)
    3.Aerospike的安装和启动:
      1)安装wget:yum install wget
      2)安装aerospike:
              wget -O aerospike.tgz https://www.aerospike.com/artifacts/aerospike-server-community/5.2.0.5/aerospike-server-community-5.2.0.5-el7.tgz
              tar -xvf aerospike.tgz
              cd aerospike-server-community-5.2.0.5-el7
              ./asinstall
              systemctl start aerospike
      3)启动aerospike:
              cd aerospike-server-community-5.2.0.5-el7
              service aerospike start –启动
              service aerospike status–查看状态
              service aerospike restart –重启动
              service aerospike stop –关闭

      4)连接远程服务器:aql --host=xxx.xx.x.xx
      5)基本指令:https://www.aerospike.com/docs/guide/single.html,Key-Value Store->Single record
            aql> insert into test.demo(PK, bin) values ('key' , 'Bin Value')
            aql> select * from test.demo where PK = 'key'
            aql> insert into test.demo (PK, bin) values ('key', 'Updated Bin Value')
            aql> delete from test.demo where PK='key'

                                 aql> SET OUT JSON

                                 aql> SHOW OUTPUT JSON 

    AQL:https://www.aerospike.com/docs/tools/aql/#getting-help-for-aql

  • 相关阅读:
    前端开发-模块化开发框架RequireJS-1 初识requirejs
    需整理
    SSM
    iomanip
    new与delete使用方法
    分析setting源代码获取sd卡大小
    第一次正式小用Redis存储
    blob storage第一次亲密接触
    第一次使用ashx,被震惊
    Redis中的异步Async
  • 原文地址:https://www.cnblogs.com/lucylu/p/14153638.html
Copyright © 2020-2023  润新知