User Tools

Site Tools


en:tms-search-service

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 boot:

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: 127.0.0.1
  port: 9200
  scheme: http
  username: tms
  password: your_password
  refresh-interval: 60s
  number-of-shards: 1

* host - ip address or domain name of server with elasticsearch
* username - username from step 4.
* password - password from step 4.

en/tms-search-service.txt · Last modified: 2021/09/23 16:26 by Виталий Журавлев