The lightweight configuration center allows developers to discover, register, and query services during development, debugging, and testing.This module does not belong to the official environment of EDAS. You must download the installation package and complete installation before using it.
Within a company, you generally only need to install the lightweight configuration center on one ECS instance and bind specific hosts on other development computers.The following specifies the steps for installation and use.
Check that the environment requirements are met.
Check that the environment variable JAVA_HOME points to JDK 1.6 or later.
Check that port 8080 and port 9600 are unused.
Because port 8080 and port 9600 are used for starting the EDAS configuration center, we recommend that you use a dedicated ECS instance (for example, a test ECS instance) to start the EDAS configuration center.If the whole test is conducted on the same ECS instance, change the port of the Web project to another unused port.
Download the EDAS configuration center installation package and decompress it.
If required, you can download a previous version:
Go to the decompressed edas-config-center directory to start the configuration center.
- Windows operating system: Double-click startup.bat.
- UNIX operating system: Run the sh startup.sh command in the current directory.
To use the lightweight configuration center on development ECS instances, point the jmenv.tbsite.net domain on the local DNS (hosts file) to the IP address of the ECS instance that starts the EDAS configuration center.
The path of the hosts file is as follows:
Windows operating system: C:\Windows\System32\drivers\etc\hosts
UNIX operating system: /etc/hosts
If you start the EDAS configuration center on the ECS instance whose IP address is 192.168.1.100, add the following line to the hosts files on all development ECS instances:
After binding a host to the lightweight configuration center, open the browser, enter jmenv.tbsite.net:8080 in the address bar, and press Enter.
Then, the homepage of the lightweight configuration center is displayed.
- If the homepage is displayed normally, you have configured the lightweight configuration center successfully.
- If the homepage is not displayed, troubleshoot the problem by going backwards step by step.
If you encounter a problem when configuring the lightweight configuration center, see Lightweight configuration center problems for troubleshooting.