使用 vagrant 安装的 aerospike 无法正常工作

aerospike installed using vagrant is not working properly

我正尝试按照 here.

的步骤在本地安装 aerospike
mkdir ~/aerospike-vm && cd ~/aerospike-vm
vagrant init aerospike/aerospike-ce
vagrant up

以上命令全部成功,没有报错

下面是vagrant up命令的最小日志。

default: Successfully added box 'aerospike/aerospike-ce' (v4.5.0.5) for 'virtualbox'!
.
.
.
Going on, assuming VBoxService is correct...
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 5.2.12
    default: VirtualBox Version: 6.0
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => /Users/rajkumar.natarajan/aerospike-vm

下面的命令清楚地显示只有 amc 是 运行 而不是 aerospike。

BOSM0001-RANATA:aerospike-vm rajkumar.natarajan$ vagrant ssh -c "sudo service aerospike status"
asd is stopped
Connection to 127.0.0.1 closed.

BOSM0001-RANATA:aerospike-vm rajkumar.natarajan$ vagrant ssh -c "sudo service amc status"
amc (pid  1458) is running...
Connection to 127.0.0.1 closed.


BOSM0001-RANATA:aerospike-vm rajkumar.natarajan$ vagrant ssh -c "sudo grep -i cake /var/log/aerospike/aerospike.log"
Connection to 127.0.0.1 closed.

知道这里出了什么问题吗。

做:$ vagrant ssh 这将使您进入 shell。然后看看为什么aerospike没有启动。 第一次尝试:

$ sudo service aerospike start

然后

$ sudo service aerospike status 

如果不是 运行,请检查 /var/log/aerospike/aerospike.log 并查看日志文件显示的错误内容。