elasticsearch 未找到命令行工具

Moh*_*ari 1 elasticsearch

我已经在 Linux 18 上安装了 elasticsearch,并尝试运行以下命令:

elasticsearch-node detach-cluster
Run Code Online (Sandbox Code Playgroud)

但我收到以下错误:command not found

我从 Elasticsearch 文档(此处)中看到了这些命令。我该如何执行这个命令?

Pau*_*lRM 6

根据您的安装,您应该找到elasticsearch的bin/,我大多数情况是在/usr/share/elasticsearch/bin中

例子:

# /usr/share/elasticsearch/bin/elasticsearch-node 
A CLI tool to do unsafe cluster and index manipulations on current node

Non-option arguments:
command              

Option             Description        
------             -----------        
-E <KeyValuePair>  Configure a setting
-h, --help         Show help          
-s, --silent       Show minimal output
-v, --verbose      Show verbose output
ERROR: Missing command
Run Code Online (Sandbox Code Playgroud)