Brew Cassandra安装

Kno*_*uch 10 homebrew cassandra

我在Mac OS High Sierra上.

我做了以下

brew install cassandra
brew services start cassandra 
cqlsh localhost


~ > cqlsh localhost
Connection error: ('Unable to connect to any servers', {'::1': error(61, "Tried connecting to [('::1', 9042, 0, 0)]. Last error: Connection refused"), '127.0.0.1': error(61, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")})
Run Code Online (Sandbox Code Playgroud)

我做错了什么?介于两者之间吗?

Son*_*men 6

对于未来的查看者,添加到@Apolozeus 的评论中,您可能还想检查 Cassandra 在 brew 安装后是否已链接。

> brew link cassandra

这将创建符号链接,之后您可以调用 cassandra。

> cassandra

> cqlsh