Reputation:
I'm using a linux machine. The Elasticsearch installation guide told me to simply download and unzip the file, and then run 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. What do I do?
Upvotes: 1
Views: 7218
Reputation: 21
In the command prompt go to the extracted_file_location/elastic_search_folder/elasticsearch-(some_version_number)_folder.
Now execute bin/elasticsearch
As an example. The extracted file is in downloads with version 8.7.0:
cd Downloads/elasticsearch-8.7.0-linux-x86_64/elasticsearch-8.7.0
Now execute bin/elasticsearch
Upvotes: 2
Reputation: 648
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 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
Upvotes: 3