forked from pjialin/py12306
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
54 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# encoding=utf8 | ||
# 分布式子节点配置文件示例 | ||
|
||
# 分布式集群配置 | ||
CLUSTER_ENABLED = 1 # 集群状态 | ||
NODE_IS_MASTER = 0 # 是否是主节点 | ||
NODE_NAME = 'slave 1' # 节点名称,不能重复 | ||
REDIS_HOST = 'localhost' # Redis host | ||
REDIS_PORT = '6379' # Redis post | ||
REDIS_PASSWORD = '' # # Redis 密码 没有可以留空 | ||
|
||
# 没了,其它配置会自动从主节点同步 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters