User Tools

Site Tools


TMS Search Service

1. Installing elasticsearch on Ubuntu

wget -qO - | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb 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
http.port: 9200 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

  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 Виталий Журавлев