User Tools

Site Tools


en:tms-search-service

This is an old revision of the document!


TMS Search Service

1. Installing elasticsearch on Ubuntu

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
sudo apt-get update
sudo apt-get install elasticsearch=7.9.3

2. Editing configuration file of elasticsearch - /etc/elasticsearch/elasticsearch.yml Add this options in configure file:

discovery.type: single-node
network.host: 0.0.0.0
http.port: 9200
xpack.security.enabled: true

3. Run and configures the system to start the service at next reboot elasticserch service:

sudo systemctl enable elasticsearch
sudo systemctl start  elasticsearch

4. Add user

/usr/share/elasticsearch/bin/elasticsearch-users  useradd tms -r superuser -p your_password

5. Update configuration file manager-tvip-tms-search /opt/tvip-tms/manager/manager-tvip-tms-search/application-prod.yml

elasticsearch:
  host: host_with_elasticsearch
  port: 9200
  scheme: http
  username: tms
  password: your_password
  refresh-interval: 60s
  number-of-shards: 1
en/tms-search-service.1632312310.txt.gz · Last modified: 2021/09/22 15:05 by Виталий Журавлев