Error: Could not find or load main class org.elasticsearch.tools.JavaVersionChecker
Elasticsearch requires at least Java 8 but your Java version from /usr/jdk1.8.0_144/bin/java does not meet this requirement
明明装的是1.8+的,却提示版本过低。原来是我执行错了目录,因为elasticsearch不能用root执行,所以我创建了另外一个用户,但是忘记我系统里存在两个elasticsearch的目录,执行了root文件夹里面的文件。改成用户目录下的es就可以了。