datart icon indicating copy to clipboard operation
datart copied to clipboard

修改了配置文件里的PORT,启动服务时该配置无效

Open dxxfire opened this issue 2 years ago • 1 comments

Datart版本号 1.0.0-rc.2 Release

错误描述 修改了配置文件 /config/profiles/application-config.yml /config/datart.conf 里的 server.port datart.address 后, /bin/datart-server.sh start启动datart仍然是8080端口

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2023-07-05 16:26:40.230 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Web server failed to start. Port 8080 was already in use.

Action:

Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.

如何重现 重现错误的步骤,例如:

  1. 下载datart-server-1.0.0-rc.2-install.zip
  2. 解压
  3. 修改配置文件端口号后启动服务
  4. 看到错误

期望结果 清晰简洁地描述你期望的结果是什么

截图 如果方便的话,添加一个截图帮助解释你的问题

运行环境详情:(可选,取决于错误发生的具体位置)

  • OS: centos8
  • 数据源: 没有配置,应该是用的内置的h2数据库吧
  • 浏览器: [例如 chrome 94, safari 15]

其他内容 有关这个问题的任意其他内容

dxxfire avatar Jul 05 '23 08:07 dxxfire

image 同样遇到这个问题,看代码发现,只有设置了datasource.ip,才会走配置文件,否则默认走application-demo.yml。

所以配置上数据库就好使了

HammerMax avatar Feb 28 '24 14:02 HammerMax