1.启动失败 Error creating bean with name 'consoleHealth'
2022-04-12 06:53:45.866 ERROR 60170 --- [ main] c.a.n.c.l.StartingApplicationListener : Startup errors :
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'consoleHealth' defined in file [/Users/wukong/00.Study/_workspace/02.SourceCode/03.Nacos/NacosSourceCode/nacos/console/target/classes/com/alibaba/nacos/console/controller/HealthController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedStoragePersistServiceImpl' defined in file [/Users/wukong/00.Study/_workspace/02.SourceCode/03.Nacos/NacosSourceCode/nacos/config/target/classes/com/alibaba/nacos/config/server/service/repository/embedded/EmbeddedStoragePersistServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standaloneDatabaseOperateImpl': Invocation of init method failed; nested exception is java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load schema.sql error.
原因
有其他 Nacos 服务启动了,没有正常退出
执行 jps 命令 查看是否有 nacos 程序正在运行。
执行 sh shutdown.sh 命令 关闭 nacos。
执行 kill <nacos 进程 id> 强制关闭 nacos 程序