Installing Elasticsearch 5.0 as Service on Windows

In previous version (example Elasticsearch 1.7 ), we have used service.bat script to create an Elasticsearch windows service.(link)
In Elasticsearch 5.0, the same achieved using the script named “elasticsearch-service.bat” which is available inside the bin folder of Elasticsearch package.

The following services are available in package

elasticsearch-service-x64 - 64 bit
 elasticsearch-service-x86 - 32 bit

Base on our JDK architecture, the appropriate service will be installed.

One more configuration needs to add before installing the Elasticsearch service, which is the part of the installation process in Elastic 5.0 version.

We need to update the thread stack size setting in the file jvm.options, which is available in the path of config folder.

We have to add the following line in config if we are using 32 bit Windows

-Xss320k

We have to add the following line in config if we are using 64 bit Windows

-Xss1m

 

Elasticsearch Service can be installed with the following command

elasticsearch-service.bat install

elastic-installation

We can set various elasticsearch service options using the manager available in elasticsearch-service script.

elasticsearch-service.bat manager

I’m adding few snapshots of various options available. And also have a look at my previous post of installing Elasticsearch 1.x versions. (How to install Elasticsearch?)

This slideshow requires JavaScript.

Happy exploring data 🙂

Advertisements

Steps to set customized external terminal in VS Code

Step 1:

Go to File -> Preferences -> User settings

Step 2:

Add one of the following line based on the environment to settings.json file

// to run on OS X
"terminal.external.osxExec": "Terminal.app"
// to run on linux
"terminal.external.linuxExec": "xterm"
// to run windows
"terminal.external.windowsExec": "%COMSPEC%"

For example, if we want to set Git Bash as an external terminal. We can achieve it by providing Git bash exe URL as follows

"terminal.external.windowsExec": "C:\\Program Files\\Git\\bin\\bash.exe"

Restart the VS Code instance to apply the settings.

Keyboard Shortcut to open external terminal in VS Code is Ctrl + Shift + C

Happy Coding 🙂