解决:Config service failed to start in 120 seconds! Please check ./service/apollo-service.log...

简介: 解决:Config service failed to start in 120 seconds! Please check ./service/apollo-service.log...

启动Apollo分布式配置中心的时候,经常报这个错:

Config service failed to start in 120 seconds! Please check ./service/apollo-service.log for more information.

如何解决呢?直接贴出解决方案:

1.设置启动最大时间(120秒改为600秒):

修改demo.sh :

declare -i max_counter=24# 245=120s

declare -i max_counter=120# 1205=600s

2.判断是否安装jdk,如果没有就安装

java -version

2.配置环境变量JAVA_HOME

cat /etc/profile

最后启动成功:

相关实践学习
日志服务之使用Nginx模式采集日志
本文介绍如何通过日志服务控制台创建Nginx模式的Logtail配置快速采集Nginx日志并进行多维度分析。
目录
相关文章
|
6月前
|
监控 Dubbo 搜索推荐
No application config found or it‘s not a valid config! Please add <dubbo:application name=“...“ />
No application config found or it‘s not a valid config! Please add <dubbo:application name=“...“ />
549 1
|
3月前
|
机器学习/深度学习 Java Android开发
记录一个Flutter运行的异常FAILURE: Build failed with an exception. What went wrong: A problem occurred config
记录一个Flutter运行的异常FAILURE: Build failed with an exception. What went wrong: A problem occurred config
46 0
|
开发工具 git
error: could not lock config file .git/config: Permission denied/Command failed with exit 255
error: could not lock config file .git/config: Permission denied/Command failed with exit 255
289 0
|
JSON Cloud Native 安全
can not get cluster name in registry config ‘service.vgroupMapping.xx‘, please make sure registry
can not get cluster name in registry config ‘service.vgroupMapping.xx‘, please make sure registry
1665 0
can not get cluster name in registry config ‘service.vgroupMapping.xx‘, please make sure registry
|
网络协议 Java 容器
【报错】项目启动,仅仅报错 One or more listeners failed to start. Full details will be found in the appropriate container log file
今天spring4.3.13 项目,整合ActiveMQ的时候,项目启动在自动部署到tomcat下的时候,不能正常的部署,仅仅报错如下: Connected to server [2017-12-08 03:57:12,428] Artifact springDemo:war exploded: Artifact is being deployed, please wait.
6165 0