Ingen beskrivning

yangzhijie f19bb5bef8 修改打包的程序。 6 år sedan
.settings 8869a58734 添加VSCODE开发环境配置。 6 år sedan
.vscode 8869a58734 添加VSCODE开发环境配置。 6 år sedan
bat f19bb5bef8 修改打包的程序。 6 år sedan
src 20d243d156 修改服务器的配置。 6 år sedan
test 8869a58734 添加VSCODE开发环境配置。 6 år sedan
.classpath 8869a58734 添加VSCODE开发环境配置。 6 år sedan
.factorypath 8869a58734 添加VSCODE开发环境配置。 6 år sedan
.gitignore ff95b12032 修改README 6 år sedan
.hgignore a60f8dc6d3 1.优化程序。 7 år sedan
.project 53df1fd668 1.0 8 år sedan
README.md b32e18ffcc 修改自动配置服务器名称 6 år sedan
pom.xml f19bb5bef8 修改打包的程序。 6 år sedan

README.md

服务管理器

开发环境

Git克隆源代码到本地

git clone http://www.leanwo.com:3000/ShangHaiLeanwo/ServerManagement.git

源代码导入到eclipse中。注意事项如下:

  1. 工作空间的编码格式设置成UTF-8。(Preferences-General-Workspace-Text file encoding-Other(UTF-8))
  2. 使用外部的maven(maven设置了国内镜像)
  3. 2.1 Window-Preferences-Maven-Installations-Add-Installation home: Directory(Select apache maven install folder)-Finish
  4. 2.2 Window-Preferences-Maven-User Settings-User Settings,(Browser)(Select apache maven install folder/config/settings.xml)-Update Settings

默认配置

  • 打开resources/Application.yml,修改属性server.port可以修改启动的端口号。

    * 打开resources/Application.yml,修改属性server.autoConfig可以修改启动的配置,部署到服务器时将autoConfig改为true,resources/applicationContext.xml,不需要添加任何服务器,系统自动添加同目录下的所有服务器,所有服务器中必须有run.bat和stop.bat,否则系统不会添加该服务器。
    

    server: port: 88

    * 尽量不要修改该属性,如果修改该属性,所有的服务器中都要修改eureka.serviceUrl.defaultZone属性
    

    #Eureka Server服务器地址. eureka: client: fetch-registry: true register-with-eureka: true serviceUrl: defaultZone: http://localhost:88/eureka/ ```

    Eureka服务注册与发现

    • 应用程序管理器(本程序)集成了Eureka服务注册与发现,打开网址http://localhost:88可以参考各个注册服务的信息。

    服务的默认配置

    服务器名称 | 服务名称 | 默认端口号 | 备注
    -|-|-|- 应用程序管理器 | server-management | 88 | 代理服务器 | gateway-server | 80 | 文件服务器 | file-server | 85 |