Caching 如何在Mac OS中的aerospike中创建名称空间?

Caching 如何在Mac OS中的aerospike中创建名称空间?,caching,vagrant,aerospike,Caching,Vagrant,Aerospike,我是aerospike的新手,希望在aerospike中创建一个新名称空间 如何做到这一点 我已使用vagrant安装aerospike,并使用以下命令运行aerospike: vagrant up vagrant ssh 请建议。可以通过以下步骤实现: 去流浪汉那里 vagrant up vagrant ssh 在etc/aersosspike目录中打开aerospike.cong文件 sudo vi /etc/aerospike/aerospike.conf 在文件中添加

我是aerospike的新手,希望在aerospike中创建一个新名称空间

如何做到这一点

我已使用vagrant安装aerospike,并使用以下命令运行aerospike:

vagrant up
vagrant ssh

请建议。

可以通过以下步骤实现:

  • 去流浪汉那里

    vagrant up    
    vagrant ssh 
    
  • 在etc/aersosspike目录中打开aerospike.cong文件

    sudo vi /etc/aerospike/aerospike.conf
    
  • 在文件中添加新命名空间,如下所示:

    namespace kvtest {
        replication-factor 2
        memory-size 1G
        default-ttl 5d # 5 days, use 0 to never expire/evict.
    
    
        # To use file storage backing, comment out the line above and use the
        # following lines instead.
        storage-engine device {
                file /opt/aerospike/data/catalog.dat
                filesize 5G
                data-in-memory true # Store data in memory in addition to file.
        }
    }
    

  • 可通过以下步骤实现:

  • 去流浪汉那里

    vagrant up    
    vagrant ssh 
    
  • 在etc/aersosspike目录中打开aerospike.cong文件

    sudo vi /etc/aerospike/aerospike.conf
    
  • 在文件中添加新命名空间,如下所示:

    namespace kvtest {
        replication-factor 2
        memory-size 1G
        default-ttl 5d # 5 days, use 0 to never expire/evict.
    
    
        # To use file storage backing, comment out the line above and use the
        # following lines instead.
        storage-engine device {
                file /opt/aerospike/data/catalog.dat
                filesize 5G
                data-in-memory true # Store data in memory in addition to file.
        }
    }
    

  • 是的,我想补充一点:请避免回答问题。相反,关闭它,继续前进。有时候,建议一个问题可能与主题相关的网站是很有帮助的。是的,我想补充一点:请避免回答草料。相反,关闭它,继续前进。有时,建议一个问题可能涉及主题的站点是有帮助的。Stack Overflow是一个用于编程和开发问题的站点。这个问题似乎离题了,因为它与编程或开发无关。请参见帮助中心中的。堆栈溢出是一个解决编程和开发问题的网站。这个问题似乎离题了,因为它与编程或开发无关。请参见帮助中心中的。也许或者会是一个更好的提问的地方。