Skip to content

每个单独服务如何配置单独的 数据库配置或者redis配置? #252

Closed Answered by zuihou
zqb666 asked this question in 02.提问
Discussion options

You must be logged in to vote

mysql.yml. redis.yml 等是全局配置文件,所有服务都会读。
lamp-xxx-server.yml、lamp-yyy-server.yml 等是各个服务自己的配置文件。

读取顺序为: lamp-xxx-server.yml > mysql.yml.

所以 xxx 服务要访问A db, 只需要将数据库配置复制到 lamp-xxx-server.yml 中,即可覆盖mysql.yml 中的全局配置。

reids 同理

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zqb666
Comment options

Answer selected by zqb666
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants