Official website: Https://github.com/ctripcorp/apollo
Wiki:https://github.com/ctripcorp/apollo/wiki
Issues:https://github.com/ctripcorp/apollo/issues (if you have any problems during the period, please find most of the solutions here)
Description: The distributed deployment scenario is provided by the official, but is generally more than a single-machine deployment based on local development and debugging. And the quick start solution provided stays in the demo test phase. So the following will be for the single-machine building on the detailed practice.
Note: If you are a production environment, be sure to use a distributed deployment scenario to make high-availability clusters.
Download release version: Https://github.com/ctripcorp/apollo/releases, offline Version: (Link: https://pan.baidu.com/s/1gfrMejD password: EMSB)
Deployment steps:
1. Environment:
jdk:1.8.0_131
maven:3.3.9
mysql:5.7.18
apollo:0.8.0
2. Decompression
3. Import Database files
Log on to the MySQL command line, and then execute
Source/home/jim/opt/apollo-0.8.0/scripts/sql/apolloconfigdb.sql
Source/home/jim/opt/apollo-0.8.0/scripts/sql/apolloportaldb.sql
4. Packing
Modify the/home/jim/opt/apollo-0.8.0/scripts/build.sh, change the database account password to the local computer. The rest of the basic need not change.
And then execute
./build.sh
5. Create a new Folder
Create the following folder in the OPT directory
mkdir /opt/777/opt/mkdir /opt/777/opt/mkdir /opt/ 777/opt/settings
6. Start
Apollo-configservice:
Extract:
7z x apollo-configservice-0.8.0-github.zip-otest
Note: The preceding is the path of execution, 7z is the command, and extracted to the test folder.
Run:
./startup.sh
Apollo-adminservice:
Extract:
7z x apollo-adminservice-0.8.0-github.zip-otest
Run:
./startup.sh
Apollo-portal:
The default port for Apollo-portal is 8080, which is the same as apollo-configservice, so if you need to start both apollo-portal and Apollo-configservice on a single machine, You need to modify the port of Apollo-portal. Modify the Server_port in startup.sh directly, such as server_port=8070.
Extract:
7z x apollo-portal-0.8.0-github.zip-otest
Modify Port:
Run:
./startup.sh
7. Visit
http://localhost:8070
8. Summary
There was a lot of talk when I deployed the stand-alone version, but I've recorded it on the issues and I can find it directly.
In particular, when deploying Apollo-portal, because the single version of the port conflict caused by the failure, and finally modified to 8070, but not in the distributed deployment of such modifications.
Here are a series of examples of Rights management, demo usage and integration, environment configuration, and more.
Ubuntu 16.04 built based on the Ctrip Apollo (Apollo) configuration Center stand-alone mode