CentOS 7.x 下nexus3.13.0-01启动失败

错误描述

[root@nexus bin]# cat /etc/redhat-release 
CentOS Linux release 7.4.1708 (Core)
[root@nexus bin]# pwd
/usr/local/nexus/bin
#此处故意使用run的方式启动,方便查看错误日志
[root@nexus bin]# ./nexus run
2019-05-06 16:57:36,726+0800 ERROR [FelixStartLevel <query>select from repository where recipe_name in ['docker-hosted', 'docker-proxy']</query>] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Exception `0135E62F` in storage `plocal:/usr/local/sonatype-work/nexus3/db/config`: 2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x)
com.orientechnologies.orient.core.exception.OQueryParsingException: Error on parsing query at position #11: Error on parsing query
Query:  repository WHERE recipe_name IN ['docker-hosted', 'docker-proxy']

解决方法

#nexus的tar包解压时会产生两个目录,nexus-3.13.0-01和sonatype-work两个目录,删除sonatype-work下的nexus3目录或者重命名,然后再启动nexus(注意nexus启动时间大概要一分钟左右,可以查看8081端口是否启动)
[root@nexus bin]# 
m -rf /usr/local/sonatype-work/nexus3/
[root@nexus bin]# ./nexus start
[root@nexus bin]# lsof -i:8081
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    21297 root  897u  IPv4 305041      0t0  TCP *:tproxy (LISTEN)
原文地址:https://www.cnblogs.com/ccbloom/p/10932822.html