简体   繁体   English

Elasticsearch安装错误:没有这样的文件或目录

[英]Elasticsearch installation error: No such file or directory

I'm using a linux machine. 我正在使用Linux机器。 The Elasticsearch installation guide told me to simply download and unzip the file, and then run bin/elasticsearch . Elasticsearch安装指南告诉我只需下载并解压缩文件,然后运行bin/elasticsearch But when I ran it, I got this error: 但是当我运行它时,出现了这个错误:

$ bin/elasticsearch
-bash: bin/elasticsearch: No such file or directory

I can clearly see the elasticsearch file in my home directory, and all the files within it seem intact. 我可以清楚地看到我的主目录中的elasticsearch文件,并且其中的所有文件看起来都是完整的。 What do I do? 我该怎么办?

If you are trying to access the file with: 如果您尝试通过以下方式访问文件:

bin/elasticsearch 

You get the error. 您得到错误。

Try to tell the full route. 尝试说出完整的路线。

First move to the directory with cd 首先使用cd移至目录

cd route/to/your/directory

Then use . 然后使用. for calling from your actual position: 从您的实际位置致电:

./bin/elasticsearch

Note: If you get an error about the access or something similar, try giving execution permission to your file: 注意:如果您遇到有关访问或类似问题的错误,请尝试授予文件执行权限:

chmod u+x ./bin/elasticsearch

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM