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

原文地址:https://www.cnblogs.com/lucylu/p/14153638.html