-
Notifications
You must be signed in to change notification settings - Fork 90
Installing Elasticsearch
Jack Shahhoud edited this page Jul 2, 2020
·
9 revisions
You should have openJDK 11 installed on your machine.
- Add the public GPG key to APT
curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
- Elasticsearch 6 will be installed, since FOSElasticaBundle supports currently Elasticsearch 6.
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
- Install Elasticsearch
sudo apt update && sudo apt install elasticsearch
- Run
sudo nano /etc/elasticsearch/elasticsearch.ymland Replace#network.hostwithnetwork.host: localhost. - Start Elasticsearch with
sudo systemctl start elasticsearch, for auto start every timesudo systemctl enable elasticsearch. - Run
curl -X GET 'http://localhost:9200'for checking the connection with Elasticsearch.
- Run
php bin/console fos:elastica:populatefor creating indexes andphp bin/console fos:elastica:resetfor resetting indexes.
Check out /share.catrob.at/pocketcode/
- Docker - Linux/Mac/Windows
- Ubuntu - VM/Native
- Installing Elasticsearch
- Server Setup
- Using Webpack (material components)