Linux installation ElasticSearch tip the Exception in the thread of “main” Java. Lang. RuntimeException 75/100 post weixin_43438052 not select file
Question 1.
- Follow the official instructions to install, but this problem occurs:
- It basically means it’s not allowed
root
To install
why
Elasticsearch does not support root by default.
To solve
Des.insecure. Allow. root=true
-
Update /software/ elasticSearch -7.12.0/bin/ elasticSearch, add ES_JAVA_OPTS= “-des.insecure.allow.root=true”
-
Or add sh /software/ elasticSearch -7.12.0/bin/ elasticSearch -d -des.insecure. Allow. root=true
Note: Running root in a formal environment may pose security risks. It is not recommended to run root.
Solution 2: Add dedicated users
Useradd elasticsearch chown -r elasticsearch: elasticsearch/software/elasticsearch - 7.12.0 su elasticsearch sh / software/elasticsearch - 7.12.0 / bin/elasticsearch - dCopy the code
Question 2.
To solve
- Insufficient memory, at least required
1G
Memory space
Insert a picture description here
Problem ① Follow the official prompts to install, but this problem occurs: insert the picture description here
Root installation is not allowed
Cause ElasticSearch does not support the root user by default.
Solution Solution 1: Des.insecure. Allow. root=true Modify /software/ elasticSearch -7.12.0/bin/ elasticSearch, Add ES_JAVA_OPTS = “- Des. Insecure. Allow the root = true”
Or add sh /software/ elasticSearch -7.12.0/bin/ elasticSearch -d -des.insecure. Allow. root=true
Note: Running root in a formal environment may pose security risks. It is not recommended to run root.
Solution 2: Add special users useradd elasticsearch chown -r elasticsearch: elasticsearch/software/elasticsearch – 7.12.0 su elasticsearch sh /software/ elasticSearch -7.12.0/bin/ elasticSearch -d
To solve the memory shortage, at least 1G memory space is required Markdown 1202 words 32 lines current line 1, current column 0HTML 515 words 18 paragraphs Baidu