如何使用 Vagrant 安装特定版本的 Aerospike

How to install a specific version of Aerospike using Vagrant

我正在按照 https://www.aerospike.com/docs/operations/install/vagrant/mac/ 中的步骤操作 下载 Aerospike。但是,默认情况下我获得最新版本的 Aerospike (4.5.3),我想要 3.7.5 版本。

任何关于如何做到这一点的线索都会有所帮助。

谢谢!

使用的vagrant镜像是centos6机器。您可以轻松下载任何可用版本并安装在您的 vagrant 虚拟机上。

以下是删除旧安装并安装新版本的步骤:

1) Select 你的 RHEL/Centos6/el6 版本:

https://www.aerospike.com/artifacts/aerospike-server-community/

例如 4.7.0.2

https://www.aerospike.com/artifacts/aerospike-server-community/4.7.0.2/aerospike-server-community-4.7.0.2-el6.tgz

验证发行说明: https://www.aerospike.com/download/server/notes.html

2) 登录到 运行 vagrant:

vagrant ssh

3) 修改您的 resolv.conf 以使用 public DNS 服务器:

sudo bash -c 'echo "nameserver 8.8.8.8" >> /etc/resolv.conf'

4) 获取新镜像:

wget https://www.aerospike.com/artifacts/aerospike-server-community/4.7.0.2/aerospike-server-community-4.7.0.2-el6.tgz

5) 解压并解压缩:

tar xvf aerospike-server-community-4.7.0.2-el6.tgz
aerospike-server-community-4.7.0.2-el6/
aerospike-server-community-4.7.0.2-el6/SHA256SUMS
aerospike-server-community-4.7.0.2-el6/aerospike-tools-3.21.1-1.el6.x86_64.rpm
aerospike-server-community-4.7.0.2-el6/LICENSE
aerospike-server-community-4.7.0.2-el6/asinstall
aerospike-server-community-4.7.0.2-el6/aerospike-server-community-4.7.0.2-1.el6.x86_64.rpm
aerospike-server-community-4.7.0.2-el6/dep-check

6) 删除旧安装的二进制文件:

sudo rpm -e aerospike-server-community

7) 安装新的二进制文件:

cd aerospike-server-community-4.7.0.2-el6/

sudo rpm -ivh aerospike-server-community-4.7.0.2-1.el6.x86_64.rpm