First, the environmental requirements
Virtual machine memory to at least 2g
jdk1.8 more
Recommendation 5.7 above in the database, if the version is too low, the database structure in the implementation of Apollo, the default can not support two types timestamp fields in a table, it is recommended that you use the mysql 5.7 or higher
Second, download Apollo
download link
https://github.com/ctripcorp/apollo
After the download, there are two compression packages:
apollo-master source and dependent jar package (recommended hit the local maven repository)
apollo-build-scripts-master environment throughout the Apollo archive, you can use a command Apollo really a service starts up
1, create two databases:
apolloconfiggb: store configuration files
apolloportaldb: store some of the related tables portal
2, upload apollo-build-scripts-master file to the virtual machine
Decompression:
unzip apollo-build-scripts-master.zip
mv apollo-build-scripts-master /usr/local/
3, modify the file demo.sh
After extracting the files into the folder apollo-build-scripts-master (my folder is / usr / local / Apollo)
Use vi commands to modify: vi demo.sh
Save and exit
4, ./demo.sh start command to start
See the results, says a successful start, we have to look at access
Account: apollo
Password: admin
So far, to build success! ! !