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

本文涉及的产品
日志服务 SLS,月写入数据量 50GB 1个月
简介: 解决: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日志并进行多维度分析。
目录
相关文章
|
27天前
|
缓存 关系型数据库 MySQL
error: Failed dependencies: mariadb-connector-c-config is obsoleted by mysql-community-server-8.0.36-1.el7.x86_64 问题解决
error: Failed dependencies: mariadb-connector-c-config is obsoleted by mysql-community-server-8.0.36-1.el7.x86_64 问题解决
65 19
|
16天前
|
Linux 开发工具 数据安全/隐私保护
【Deepin 20系统】Linux系统开机显示Failed to start Rotate log files
如果解决了该问题,系统仍然进不去不要惊慌,继续排查下一个错误。
21 4
|
7天前
ESLint—— Failed to load config "standard" to extend from
ESLint—— Failed to load config "standard" to extend from
12 0
|
2月前
|
开发工具 git
*** Please tell me who you are.Run git config --global user.email “you@example.com“ git confi
*** Please tell me who you are.Run git config --global user.email “you@example.com“ git confi
|
9月前
|
消息中间件
failed to open log file at ‘/var/log/rabbitmq/rabbit@9f987b50c687_upgrade.log‘, reason: permission d
failed to open log file at ‘/var/log/rabbitmq/rabbit@9f987b50c687_upgrade.log‘, reason: permission d
242 0
|
3月前
|
JavaScript 前端开发
ESLint—— Failed to load config “standard“ to extend from
ESLint—— Failed to load config “standard“ to extend from
97 0
|
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
126 0
|
9月前
|
关系型数据库 MySQL Linux
DVWA CentOS Could not connect to the MySQL service. Please check the config file.
DVWA CentOS Could not connect to the MySQL service. Please check the config file.
50 0
|
8天前
|
测试技术
Profile Config 多环境不同配置
Profile Config 多环境不同配置
11 0
|
8天前
NLog.config 配置
NLog.config 配置
14 0

热门文章

最新文章