Solve the problem of garbled characters in the Elasticsearch windows cmd console

Problem Description

When using the Elasticsearch console under the Windows operating system, you may encounter garbled characters.

Solution

  1. Open the Elasticsearch installation directory and find the jvm.options file under the config folder.

  2. Open the jvm.options file with a text editor.

  3. Find an empty location in the file, add that line at the end of the file, or choose another location.

  4. Add the following configuration parameters:

    -Dfile.encoding=GBK
    
  5. Save the jvm.options file.

  6. Restart Elasticsearch.

おすすめ

転載: blog.csdn.net/qq_39997939/article/details/131610714