解决Nexus自启动JDK版本报错问题No suitable Java Virtual Machine could be found on your system
service nexus错误信息为:
No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be at least 1.8 and at most 1.8.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
解决
修改在nexus对应的bin目录下的nexus文件:
加入参数:
INSTALL4J_JAVA_HOME_OVERRIDE=/usr/local/java/jdk1.8.0_212
然后启动,解决。
如有错误欢迎指正