Install Elasticsearch on a Dedicated Server
Install Elasticsearch on a Dedicated Server
Procedure
- 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.
- Extract the contents of the zip file to C:\ElasticSearch.
- Go to C:\ElasticSearch\elasticsearch-6.7.0\elasticsearch-6.7.0\config, and then access the elasticsearch.yml file.
- 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
- Save and close the .yml file.
- Select the Start button on Windows, right-click Command Prompt, and then select Run as administrator.The Command Prompt window appears.
- At the command prompt, enter cd C:\ElasticSearch\elasticsearch-6.7.0\bin, and then press Enter.
- At the command prompt, enter elasticsearch-service install, and then press Enter.Elasticsearch is installed.
- 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.
- 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" },
- 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.
- On the GE Digital APM server, go to C:\ProgramData\Meridium\MeridiumAppSettings.xml.
- 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" />
- 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
- 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.
- Extract the contents of the zip file to C:\Program Files\ActiveMQ.
- Go to C:\Program Files\ActiveMQ\apache-activemq-5.15.10\conf, and then access the activemq.xml file.
- In the .xml file, find the <transportConnectors> tag and comment out the ones with names amqp, stomp, mqtt and ws.
- Save and close the .xml file.
- Access the jetty-realm.properties file.
- In the properties file, change the admin password:admin: <password>, admin
- Comment out the other account.
- Save and close the properties file.
- Select the Start button on Windows, right-click Command Prompt, and then select Run as administrator.The Command Prompt window appears.
- Enter cd C:\Program Files\ActiveMQ\apache-activemq-5.15.10\bin\win64, and then press Enter.
- Enter InstallService.bat, and then press Enter.ActiveMQ is installed.
- 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.
- On the server on which Elasticsearch is installed, go to http://localhost:8161/ in a web browser, and ensure that ActiveMQ runs successfully.
- On the GE Digital APM server, go to C:\ProgramData\Meridium\MeridiumAppSettings.xml.
- 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" />