【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>
apollo安装
安装的mysql版本要求在5.6.5+
运行命令
SHOW VARIABLES WHERE Variable_name = 'version';
下载包地址: https://github.com/ctripcorp/apollo/releases
wget https://github.com/ctripcorp/apollo/releases/download/v1.5.1/apollo-configservice-1.5.1-github.zip
wget https://github.com/ctripcorp/apollo/releases/download/v1.5.1/apollo-adminservice-1.5.1-github.zip
wget https://github.com/ctripcorp/apollo/releases/download/v1.5.1/apollo-portal-1.5.1-github.zip
另一个版本
wget https://github.com/ctripcorp/apollo/releases/download/v1.4.0/apollo-adminservice-1.4.0-github.zip
wget https://github.com/ctripcorp/apollo/releases/download/v1.4.0/apollo-configservice-1.4.0-github.zip
wget https://github.com/ctripcorp/apollo/releases/download/v1.4.0/apollo-portal-1.4.0-github.zip
下载好后解压,并将对应的目录重命名 然后修改各个组件中config中的数据库连接信息,本机连接测试一下
local.meta=http://localhost:8080
dev.meta=http://192.168.83.80:8080
导入数据库验证
wget https://github.com/nobodyiam/apollo-build-scripts/blob/master/sql/apolloconfigdb.sql
wget https://github.com/nobodyiam/apollo-build-scripts/blob/master/sql/apolloportaldb.sql
[root@60 apollo2]# mysql -uroot -p123456 < apolloconfigdb.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
[root@60 apollo2]# mysql -uroot -p123456 < apolloportaldb.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
运行该命令查询
mysql> select `Id`, `Key`, `Value`, `Comment` from `ApolloPortalDB`.`ServerConfig` limit 1;
+----+--------------------+-------+--------------------------+
| Id | Key | Value | Comment |
+----+--------------------+-------+--------------------------+
| 1 | apollo.portal.envs | dev | 可支持的环境列表 |
+----+--------------------+-------+--------------------------+
1 row in set (0.01 sec)
mysql> select `Id`, `Key`, `Value`, `Comment` from `ApolloConfigDB`.`ServerConfig` limit 1;
+----+--------------------+-------------------------------+------------------------------------------------------+
| Id | Key | Value | Comment |
+----+--------------------+-------------------------------+------------------------------------------------------+
| 1 | eureka.service.url | http://localhost:8080/eureka/ | Eureka服务Url,多个service以英文逗号分隔 |
+----+--------------------+-------------------------------+------------------------------------------------------+
1 row in set (0.00 sec)

登录:http:ip:8070 参考网址 https://blog.csdn.net/zjh_746140129/article/details/86179601
来源:oschina
链接:https://my.oschina.net/u/3635512/blog/3147455