0
當我在命令行中運行elasticsearch
,我得到的過程是這樣的:如何確保從命令行運行elasticsearch只啓動一次?
asdf 71356 0.0 1.9 3828644 160064 s004 S 11:34PM 1:16.39 /usr/bin/java -Xms256m -Xmx1g -Xss256k -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=/usr/local/Cellar/elasticsearch/0.90.3 -cp :/usr/local/Cellar/elasticsearch/0.90.3/libexec/elasticsearch-0.90.3.jar:/usr/local/Cellar/elasticsearch/0.90.3/libexec/*:/usr/local/Cellar/elasticsearch/0.90.3/libexec/sigar/* org.elasticsearch.bootstrap.ElasticSearch
如果我再次運行elasticsearch
,或多次,我得到這條線的多個實例,因此該程序。我怎樣才能確保我只啓動一個實例,無論我輸入多少次elasticsearch
?