分布式锁的几种实现方式

时间:2024-04-03 16:03:43
基于docker-compose部署es集群和es-head

qq_40793660: Exception in thread "main" java.lang.RuntimeException: starting java failed with [1] es02 | output: es02 | [0.000s][error][logging] Error opening log file 'logs/gc.log': Permission denied es02 | [0.000s][error][logging] Initialization of output 'file=logs/gc.log' using options 'filecount=32,filesize=64m' failed. es02 | error: es02 | Invalid -Xlog option '-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m', see error log for details. es02 | Error: Could not create the Java Virtual Machine. es02 | Error: A fatal exception has occurred. Program will exit. es02 | at org.elasticsearch.tools.launchers.JvmOption.flagsFinal(JvmOption.java:119) es02 | at org.elasticsearch.tools.launchers.JvmOption.findFinalOptions 请问这个错是因为什么呀,ES启动不起来