Install Elasticsearch on a Dedicated Server

Install Elasticsearch on a Dedicated Server

Procedure

  1. On the server on which you want to install Elasticsearch, download the zip file for Windows, elasticsearch-6.7.0.zip, from the official Elasticsearch 6.7.0 https://www.elastic.co/downloads/past-releases/elasticsearch-6-7-0 page.
  2. Extract the contents of the zip file to C:\ElasticSearch.
  3. Go to C:\ElasticSearch\elasticsearch-6.7.0\elasticsearch-6.7.0\config, and then access the elasticsearch.yml file.
  4. In the .yml file, uncomment the following properties, and then modify the values to match those shown here:
    cluster.name: apm-cluster
    node.name: ${COMPUTERNAME}
    path.data: /ProgramData/Meridium/ElasticSearch
    path.logs: /ProgramData/Meridium/Logs
    bootstrap.memory_lock: true
    network.host: 0.0.0.0
    http.port: 9200
    action.destructive_requires_name: true
  5. Save and close the .yml file.
  6. Select the Start button on Windows, right-click Command Prompt, and then select Run as administrator.
    The Command Prompt window appears.
  7. At the command prompt, enter cd C:\ElasticSearch\elasticsearch-6.7.0\bin, and then press Enter.
  8. At the command prompt, enter elasticsearch-service install, and then press Enter.
    Elasticsearch is installed.
  9. Access the Microsoft Management Console (services.msc) and perform the following operations for the Elasticsearch service:
    • Verify that the service runs as Local System.
    • Modify the startup to be Automatic.
    • Start the service to verify installation and configuration.
  10. On the server on which Elasticsearch is installed, go to http://localhost:9200/ in a web browser, and ensure that Elasticsearch runs successfully.
    A response that is similar to the following sample appears.
    {
    "name" : "apm-node",
    "cluster_name" : "apm-cluster",
    "cluster_uuid" : "58cS6NyzQJOLZ8Xr1e3vkg",
    "version" : {
    "number" : "6.7.0",
    "build_hash" : "3adb13b",
    "build_date" : "2017-03-23T03:31:50.652Z",
    "build_snapshot" : false,
    "lucene_version" : "6.4.1"
    },
  11. On the server on which Elasticsearch is installed, go to http://[elastic-search-server]:9200/ in a web browser, and ensure that Elasticsearch runs successfully.
    A response that is similar to the sample provided in the previous step appears.
  12. On the GE Digital APM server, go to C:\ProgramData\Meridium\MeridiumAppSettings.xml.
  13. As needed, modify the following values.
    <!-- Search and Elastic Services -->
    <add key="searchServiceUrl" value="http://localhost:9199" />
    <add key="elasticServiceUrl" value="http://<name of Elastic Search server>:9200" />
  14. On the GE Digital APM server, restart the following services:
    • Meridium Search Service
    • Redis service
    • Reset IIS (optional)

Install ActiveMQ on a Dedicated Server

Procedure

  1. On the server on which you want to install ActiveMQ, download the zip file for Windows, apache-activemq-5.15.11.zip, from the official Elasticsearch 6.7.0 https://activemq.apache.org/components/classic/download/ page.
  2. Extract the contents of the zip file to C:\Program Files\ActiveMQ.
  3. Go to C:\Program Files\ActiveMQ\apache-activemq-5.15.10\conf, and then access the activemq.xml file.
  4. In the .xml file, find the <transportConnectors> tag and comment out the ones with names amqp, stomp, mqtt and ws.
  5. Save and close the .xml file.
  6. Access the jetty-realm.properties file.
  7. In the properties file, change the admin password:admin: <password>, admin
  8. Comment out the other account.
  9. Save and close the properties file.
  10. Select the Start button on Windows, right-click Command Prompt, and then select Run as administrator.
    The Command Prompt window appears.
  11. Enter cd C:\Program Files\ActiveMQ\apache-activemq-5.15.10\bin\win64, and then press Enter.
  12. Enter InstallService.bat, and then press Enter.
    ActiveMQ is installed.
  13. Access the Microsoft Management Console (services.msc) and perform the following operations for the Elasticsearch service:
    • Verify that the service runs as Local System.
    • Modify the startup to be Automatic.
    • Start the service to verify installation and configuration.
  14. On the server on which Elasticsearch is installed, go to http://localhost:8161/ in a web browser, and ensure that ActiveMQ runs successfully.

  15. On the GE Digital APM server, go to C:\ProgramData\Meridium\MeridiumAppSettings.xml.
  16. As needed, modify the following values. If ActiveMQ is configured to be a cluster, repeat the MessageBus:QueueOptions:FailoverHost:0 key incrementing the final digit for each host including the master.
    
    <add key="MessageBus:QueueOptions:ActiveMqHost" value="localhost" />
    <add key="MessageBus:QueueOptions:FailoverHosts:0" value="localhost" />
    <add key="MessageBus:QueueOptions:ActiveMqPort" value="61616" />
    <add key="MessageBus:QueueOptions:Username" value="admin" />
    <add key="MessageBus:QueueOptions:Password" value="admin" />