简体   繁体   中英

Jhipster microservices cause conflict on port 9300 of Elasticsearch

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM