Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

run elasticsearch stop

sudo -i service elasticsearch stop
Comment

stop elasticsearch node

$ jps | grep Elasticsearch
14542 Elasticsearch

#From the Elasticsearch startup logs:

[2016-07-07 12:26:18,908][INFO ][node                     ] [I8hydUG] version[5.0.0-alpha4], pid[15399], build[3f5b994/2016-06-27T16:23:46.861Z], OS[Mac OS X/10.11.5/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_92/25.92-b14]

#Or by specifying a location to write a PID file to on startup (-p <path>):

$ ./bin/elasticsearch -p /tmp/elasticsearch-pid -d
$ cat /tmp/elasticsearch-pid && echo
15516
$ kill -SIGTERM 15516
Comment

stop elasticsearch

pkill -f elasticsearch
Comment

run elasticsearch stop

sudo -i service elasticsearch stop
Comment

stop elasticsearch node

$ jps | grep Elasticsearch
14542 Elasticsearch

#From the Elasticsearch startup logs:

[2016-07-07 12:26:18,908][INFO ][node                     ] [I8hydUG] version[5.0.0-alpha4], pid[15399], build[3f5b994/2016-06-27T16:23:46.861Z], OS[Mac OS X/10.11.5/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_92/25.92-b14]

#Or by specifying a location to write a PID file to on startup (-p <path>):

$ ./bin/elasticsearch -p /tmp/elasticsearch-pid -d
$ cat /tmp/elasticsearch-pid && echo
15516
$ kill -SIGTERM 15516
Comment

stop elasticsearch

pkill -f elasticsearch
Comment

PREVIOUS NEXT
Code Example
Shell :: git ignore added folder 
Shell :: restore staged github 
Shell :: how to make NTFS read only file system writable in linux 
Shell :: merge branch to branch 
Shell :: apt list available versions 
Shell :: bash sum numbers 
Shell :: how to update application in ubunut 
Shell :: how to create a sh file to run terminal commands 
Shell :: how to logout from github desktop 
Shell :: Download Kubectl - latest release 
Shell :: start of .sh file 
Shell :: change wallpaper ubuntu 
Shell :: ffmpeg install ubuntu 
Shell :: django start project in existing directory 
Shell :: install composer in ubuntu 
Shell :: kill app processes on port 3306 
Shell :: how to install mvnw 
Shell :: cuda 10 install pytorch 
Shell :: remove all files in a directory linux 
Shell :: install spark 2.4.0 on ubuntu 
Shell :: make tarball backup of director 
Shell :: get current directory batch 
Shell :: How to install vscode on centos 8 
Shell :: untrack lfs file 
Shell :: install vim in wsl 
Shell :: git move file 
Shell :: debian install iwconfig 
Shell :: how delete wireless connection raspberry pi terminal 
Shell :: how to reset git branch to a certain commit. 
Shell :: Command to find os version of Webserver in nmap 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =