This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11843|Reply: 2

Install the standalone version of elasticsearch 7.10.2 tutorial on Windows

[Copy link]
Posted on 6/21/2021 1:19:38 PM | | | |
First, download the elasticsearch-7.10.2 version and extract it to the custom directory, enter the bin directory, and execute the following command:



Since I have the Java 1.8 version of the JDK installed natively and set the JAVA_HOME environment variable, I will get the following error when I run the command:

future versions of Elasticsearch will require Java 11; your Java version from [C:\Java\jdk1.8.0_192\jre] does not meet this requirement
Installing service      :  "elasticsearch-service-x64"
Using JAVA_HOME (64-bit):  "C:\Java\jdk1.8.0_192"
Warning: with JDK 8 on Windows, Elasticsearch may be unable to derive correct
  ergonomic settings due to a JDK issue (JDK-8074459). Please use a newer
  version of Java.
Warning: MaxDirectMemorySize may have been miscalculated due to JDK-8074459.
  Please use a newer version of Java or set MaxDirectMemorySize explicitly.
-Des.networkaddress.cache.ttl=60; -Des.networkaddress.cache.negative.ttl=10; -XX:+AlwaysPreTouch; -Xss1m; -Djava.awt.headless=true; -Dfile.encoding=UTF-8; -Djna.nosys=true; -XX:-OmitStackTraceInFastThrow; -Dio.netty.noUnsafe=true; -Dio.netty.noKeySetOptimization=true; -Dio.netty.recycler.maxCapacityPerThread=0; -Dio.netty.allocator.numDirectArenas=0; -Dlog4j.shutdownHookEnabled=false; -Dlog4j2.disable.jmx=true; -Djava.locale.providers=SPI,JRE; -Xms1g; -Xmx1g; -XX:+UseConcMarkSweepGC; -XX:CMSInitiatingOccupancyFraction=75; -XX:+UseCMSInitiatingOccupancyOnly; -Djava.io.tmpdir=C:\Users\ITSVSE~1\AppData\Local\Temp\elasticsearch; -XX:+HeapDumpOnOutOfMemoryError; -XX:HeapDumpPath=data; -XX:ErrorFile=logs/hs_err_pid%p.log; -XX:+PrintGCDetails; -XX:+PrintGCDateStamps; -XX:+PrintTenuringDistribution; -XX:+PrintGCApplicationStoppedTime; -Xloggc:logs/gc.log; -XX:+UseGCLogFileRotation; -XX:NumberOfGCLogFiles=32; -XX:GCLogFileSize=64m; -XX:MaxDirectMemorySize=536870912
The service 'elasticsearch-service-x64' has been installed.




The elasticsearch 7.10.2 zip package actually has JDK 11 built-in, and we let the program use the built-in JDK to edit the elasticsearch-env.bat file with slight modifications, as follows:



If elasticsearch is allowedExtranet access, you need to modify the elasticsearch.yml configuration file and add the following configuration:

(End)




Previous:Linux gets the total size of the disk
Next:【Practice】Eclipse installs the lombok plugin
 Landlord| Posted on 12/21/2021 9:53:45 AM |
Elasticsearch singleton mode and initiate public network access, elasticsearch.yml configure as follows:

 Landlord| Posted on 3/17/2022 11:57:38 AM |
Elasticsearch-7.x uses xpack for security authentication
https://www.itsvse.com/thread-10206-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com