使用1panel部署halo,数据连接串没有正确拼接,导致启动失败 #7125
Unanswered
duminghan23
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
使用1panel的应用商店安装MySQL数据库。
使用应用商店安装halo,在compose中的 --spring.r2dbc.url 拼接不正确,没有拼接panel_db_ip、panel_db_port、panel_db_name 这三个变量,导致容器启动失败。
此问题可能是1panel的问题。
解决方法:手动编写compose文件,把使用$符号拼接的参数手动拼接上,如下,点击确定后就可以正常安装了。
--spring.r2dbc.url=r2dbc:pool:mysql://192.168.2.201:3306/halo_k2csjn
官方文档参考地址 https://docs.halo.run/2.4/getting-started/install/1panel
Beta Was this translation helpful? Give feedback.
All reactions