Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
py12306
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
python
py12306
Commits
bbba2caa
Commit
bbba2caa
authored
Jan 10, 2019
by
Jalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加 Docker 使用说明
parent
f93fdcfd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
README.md
README.md
+15
-0
No files found.
README.md
View file @
bbba2caa
...
@@ -81,6 +81,21 @@ python main.py
...
@@ -81,6 +81,21 @@ python main.py
目前提供了一个单独的子节点配置文件
`env.slave.py.example`
将文件修改为
`env.slave.py`
, 通过
`python main -c env.slave.py`
即可快速启动
目前提供了一个单独的子节点配置文件
`env.slave.py.example`
将文件修改为
`env.slave.py`
, 通过
`python main -c env.slave.py`
即可快速启动
## Docker 使用
**1. 将配置文件下载到本地**
```
bash
docker run
--rm
pjialin/py12306
cat
/config/env.py
>
env.py
# 或
curl https://raw.githubusercontent.com/pjialin/py12306/master/env.docker.py.example
-o
env.py
```
**2. 修改好配置后运行 **
```
bash
docker run
-d
-v
$(
pwd
)
:/config
-v
py12306:/data pjialin/py12306
```
当前目录会多一个 12306.log 的日志文件,
`tail -f 12306.log`
## 更新
## 更新
### 19-01-10
### 19-01-10
*
支持分布式集群
*
支持分布式集群
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment