File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -136,16 +136,19 @@ LIMIT
136136
137137 关于更多 TiDB Lightning 的配置,请参考 [TiDB Lightning 配置参数](/tidb-lightning/tidb-lightning-configuration.md)。
138138
139- 2. 运行 ` tidb-lightning` 。如果直接在命令行中启动程序,可能会因为 ` SIGHUP` 信号而退出,建议配合 ` nohup` 或 ` screen ` 等工具 ,如:
139+ 2. 运行 ` tidb-lightning` 。如果直接在命令行中启动程序,可能会因为 ` SIGHUP` 信号而退出。不推荐在命令行中直接使用 nohup 启动进程。编辑以下脚本内容 ,如:
140140
141- 若从 Amazon S3 导入,则需将有权限访问该 S3 后端存储的账号的 SecretKey 和 AccessKey 作为环境变量传入 Lightning 节点。同时还支持从 ` ~/.aws/credentials` 读取凭证文件。
141+ 若从 Amazon S3 导入,则需将有权限访问该 S3 后端存储的账号的 SecretKey 和 AccessKey 作为环境变量传入 TiDB Lightning 节点。同时还支持从 ` ~/.aws/credentials` 读取凭证文件。
142142
143143 ` ` ` shell
144+ #! /bin/bash
144145 export AWS_ACCESS_KEY_ID=${access_key}
145146 export AWS_SECRET_ACCESS_KEY=${secret_key}
146147 nohup tiup tidb-lightning -config tidb-lightning.toml > nohup.out 2>&1 &
147148 ` ` `
148149
150+ 再使用脚本启动 tidb-lightning。
151+
1491523. 导入开始后,可以采用以下任意方式查看进度:
150153
151154 - 通过 ` grep` 日志关键字 ` progress` 查看进度,默认 5 分钟更新一次。
You can’t perform that action at this time.
0 commit comments