ubuntu安装apollo(quick start)

1. 前置条件,ubuntu上需要安装好jdk,以及mysql。安装mysql可参考https://www.cnblogs.com/pageBlog/p/13753848.html

2. 下载quick start安装包。下载地址https://pan.baidu.com/s/1Ieelw6y3adECgktO0ea0Gg#list/path=%2F,提取码:9wwe

3. 上传到ubuntu服务器,并解压

unzip apollo-quick-start-1.7.1.zip

4. 执行安装包中的apolloconfigdb.sqlapolloportaldb.sql

5. 修改demo.sh中的数据库连接配置

page@page-virtual-machine:/opt/apollo$ vim demo.sh 

#!/bin/bash
  
# apollo config db info
apollo_config_db_url=jdbc:mysql://localhost:3306/ApolloConfigDB?characterEncoding=utf8
apollo_config_db_username=root
apollo_config_db_password=123456

# apollo portal db info
apollo_portal_db_url=jdbc:mysql://localhost:3306/ApolloPortalDB?characterEncoding=utf8
apollo_portal_db_username=root
apollo_portal_db_password=123456

6. 执行启动脚本

./demo.sh start

  启动成功如下

page@page-virtual-machine:/opt/apollo$ ./demo.sh start
==== starting service ====
Service logging file is ./service/apollo-service.log
Started [5104]
Waiting for config service startup.......
Config service started. You may visit http://localhost:8080 for service status now!
Waiting for admin service startup.
Admin service started
==== starting portal ====
Portal logging file is ./portal/apollo-portal.log
Started [5312]
Waiting for portal startup.......
Portal started. You can visit http://localhost:8070 now!

7. 登录界面,地址:http:{ip}:8070,用户名:apollo,密码:admin

 

 

 

 

参考文档:https://github.com/nobodyiam/apollo-build-scripts

posted @ 2020-09-30 15:13  到三国卖栗子  阅读(440)  评论(0编辑  收藏  举报