創建數據庫
1、創建ApolloPortalDB。通過各種MySQL客戶端導入apolloportaldb.sql即可
2、創建ApolloConfigDB。通過各種MySQL客戶端導入apolloconfigdb.sql
獲取安裝包
從release下載預先打好的安裝包
配置數據庫連接信息
1、解壓apollo-configservice-x.x.x-github.zip、解壓apollo-adminservice-x.x.x-github.zip、解壓apollo-portal-x.x.x-github.zip
2、打開config目錄下的application-github.properties文件
3、分別填寫正確的數據庫連接串信息,注意用戶名和密碼後面不要有空格!(注意portal使用的庫名和其他2個不同,直接替換host:port即可)
4、配置apollo-portal的meta service信息,打開apollo-portal-x.x.x-github.zip中config目錄下的apollo-env.properties文件
部署
1、將對應環境的apollo-configservice-x.x.x-github.zip上傳到服務器上,解壓後執行scripts/startup.sh
2、將對應環境的apollo-adminservice-x.x.x-github.zip上傳到服務器上,解壓後執行scripts/startup.sh
3、將apollo-portal-x.x.x-github.zip上傳到服務器上,解壓後執行scripts/startup.sh