The Simple Application Server allows developers to discover, register, and query services during development, debugging, and test.This module does not belong to the official environment of EDAS. You must download the installation package and complete installation before using it.
Generally, the lightweight configuration center only needs to be installed on one ECS instance inside a company, and other development machines only need to bind to a specific host.The following details installation and use steps.
Check that the environment requirements are met.
Check that the environment variable JAVA_HOME points to JDK 1.6 or a later version.
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:
-[Edition of January 2018] (http://edas-public.oss-cn-hangzhou.aliyuncs.com/install_package/LCC/2018-01-05/edas-config-center.zip )
Go to the 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.
To use the Simple Application Server 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 to 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 a host is bound to use the lightweight configuration center, open the browser, enter jmenv.tbsite.net:8080 in the address box, and press Enter. Then the homepage of the lightweight configuration center will be displayed.
- If the homepage is displayed normally, the lightweight configuration center is configured successfully.
- If not, locate the problem backwards step by step.
In case of any problem arising from the configuration process of the lightweight configuration center, locate and solve it according to Problems of lightweight configuration center.