zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    装饰器 无惨固定模式 和 有参装饰器的固定模式
    匿名函数
    字典生成式
    列表生成式
    Centos7安装配置apache-tomcat-8.5.16.tar.gz
    Centos7安装配置jdk-8u151-linux-x64.tar.gz
    Linux CentOS7源码安装配置mysql-5.7.17-linux-glibc2.5-x86_64.tar.gz
    VirtualBox新建Centos7虚拟系统
    vmware workstation 10的安装
    redhat linux rpm包安装配置mysql数据库
  • 原文地址:https://www.cnblogs.com/lucylu/p/14153638.html
Copyright © 2011-2022 走看看