Netflix Open source Eureka is built using Gradle, so we also use the Gradle to compile it with the required environment Eclipse, Gradle, Tomcat, git these plug-ins can skip directly to the Eureka server if they have already been installed
EclispeDownload the official website https://www.eclipse.org/download down to install, process omitted I use is: Version:neon release (4.6.0) version
Gradle1. Download Gradle https://services.gradle.org/distributions/gradle-2.14-all.zip2, add environment variable gradle_home, add value c \ gradle-2.9-bin\gradle-2.9; (Note depending on your actual installation path modification) 3, add%gradle_home%/bin;4, verify in the PATH environment variable, enter GRADLE-V on the command line to see if the configuration is correct, Correct output Gradle version information; Gradle Eclipse plugin: 1.eclipse in turn "Help" – "Eclipse Marketplace", enter "Buildship" in the search field to search; 2. Click Install , wait for the installation to complete, and then restart Eclipse as prompted. 3. After the installation is successful, you can window–>show view–>others ... File–>new–> and other ... See the added Gradle option. 4. Set Gradle User Home in Eclipse as the path in the environment variable.
GitI use the Git plugin that comes with eclipse, so no need to install it, if you do not use Eclispe, you can download the installation yourself, the procedure is omitted
Eureka ServerGet Eureka source from GitHub: 1, Eclipse->import2, 3, Input: Https://github.com/Netflix/eureka.git Click Next to complete the source download 4, will Eureka to Gradle Mode import Eclipse 5, specify git download Eureka source directory 6, import completed as shown in 7, the official compilation Eureka installed Gradle Eclipse Plugin will display Gradle Tasks, if not shown in window--->sho W View-->other in the face version of the right button to run the war package, packaging may appear nebula.netflixoss plug-in can not be found, modify the following three to download the plugin can also be found in the other plugins can not find, modify the following to run the war package again, then should be able to package successfully according to the source code compiled by packaging and do not have JSP, CSS and other packaging into the deployment after the visit Http://localhost:8080/eureka may not be able to see the Eureka interface, so also need to modify eureka-server this project, Pack the resources with Eureka-server
Eureka deployment to TomcatModify the name of the war package as in Tomcat WebApps, start Tomcat, it is possible to report an exception during startup cannot execute request on any known server this is normal, when you start to find other Server, can not find, after a while to start, wait for about five minutes, access Http://localhost:8080/eureka instructions Eureka Server Deployment success
Eureka Source Compilation Installation Deployment