PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, October 25, 2022

[FIXED] How to install elasticsearch as a service using brew

 October 25, 2022     elasticsearch, installation, service     No comments   

Issue

I want to use brew to install elasticsearch but I don't succeed to install it as a service to be able to start it like:

sudo service elasticsearch start

and to be able to stop it like:

sudo service elasticsearch stop

Do you know how I can do it?


Solution

In homebrew you don't need to install sth as a service in a special way. Install it as usual and start it as a service (if the formula supports it, which elasticsearch does).

So to install:

brew install elasticsearch

and then to run as a service (with autostart on startup):

brew services start elasticsearch

Or, if you don't want/need a background service you can just run:

elasticsearch

To stop/kill, just press Ctrl+C on the terminal where you executed above command



Answered By - Maccesch
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing