Reputation: 615
Elasticsearch works with ports 9200 and 9300, but if I start a JHipster micro-service configured to work with Elasticsearch before starting the Elasticsearch service Elasticsearch fails because something in the JHipster service starts at port 9300.
I checked this situation by running the netstat -a
command in Windows CMD.
If Elasticsearch uses port 9300 and the microservice will use Elasticsearch, why is the microservice occupying port 9300?
Need to change anything else for the service to use Elasticsearch in dev mode?
Upvotes: 0
Views: 61
Reputation: 7874
You can run elasticsearch on different ports than the default one. To do so add/update in elasticsearch.yml
file the following:
http.port: 9201
transport.port: 9301
Upvotes: 0