我已经在 Linux 18 上安装了 elasticsearch,并尝试运行以下命令:
elasticsearch-node detach-cluster
Run Code Online (Sandbox Code Playgroud)
但我收到以下错误:command not found
我从 Elasticsearch 文档(此处)中看到了这些命令。我该如何执行这个命令?
根据您的安装,您应该找到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)
| 归档时间: |
|
| 查看次数: |
2760 次 |
| 最近记录: |