当前位置:网站首页>tiup mirror init
tiup mirror init
2022-08-01 20:34:00 【添香小铺】
命令 tiup mirror init 用于初始化一个空的镜像。初始化的镜像不包含任何组件和组件管理员,仅生成以下文件:
+ <mirror-dir> # 镜像根目录 |-- root.json # 镜像根证书 |-- 1.index.json # 组件/用户索引 |-- snapshot.json # 镜像最新快照 |-- timestamp.json # 镜像最新时间戳 |--+ keys # 镜像私钥(可移动到其他位置) |-- {hash1..hashN}-root.json # 根证书私钥 |-- {hash}-index.json # 索引私钥 |-- {hash}-snapshot.json # 快照私钥 |-- {hash}-timestamp.json # 时间戳私钥
以上文件的具体作用及内容格式请参考镜像说明。
语法
tiup mirror init <path> [flags]
<path> 为本地目录路径,可以为相对路径。TiUP 会以此路径为镜像文件存放路径,在其中生成文件。若该目录已存在,则必须保证为空,若该目录不存在,则 TiUP 会自动创建。
选项
-k, --key-dir(string,默认 {path}/keys)
指定生成私钥文件的目录。若指定的文件目录不存在,则会自动创建。
输出
- 若成功:无输出
- 若
<path>不为空:Error: the target path '%s' is not an empty directory - 若
<path>不是目录:Error: fdopendir: not a directory
边栏推荐
- Protocol Buffer 使用
- LTE时域、频域资源
- 【kali-信息收集】(1.4)识别活跃的主机/查看打开的端口:Nmap(网络映射器工具)
- Remove 360's detection and modification of the default browser
- latex paper artifact -- server deployment overleaf
- Fork/Join线程池
- 【kali-信息收集】(1.6)服务的指纹识别:Nmap、Amap
- The Internet giant development process
- What is the difference between a utility model patent and an invention patent?Understand in seconds!
- 密码学的基础:X.690和对应的BER CER DER编码
猜你喜欢

98.嵌入式控制器EC实战 EC开发板开发完成

Where should I prepare for the PMP exam in September?

Qt设置应用程序开机自启 解决设置失败原因

卷积神经网络(CNN)mnist数字识别-Tensorflow

Remove 360's detection and modification of the default browser

To promote energy conservation institute 】 【 the opinions of the agricultural water price reform

MongoDB快速上手

【Untitled】

第56章 业务逻辑之物流/配送实体定义

算法---解码方法(Kotlin)
随机推荐
Different operating with different locks, rounding
Interview Blitz 70: What are sticky packs and half packs?How to deal with it?
vant实现Select效果--单选和多选
通俗解释:什么是临床预测模型
仿牛客论坛项目
Use WeChat official account to send information to designated WeChat users
OSG Notes: Set DO_NOT_COMPUTE_NEAR_FAR to manually calculate far and near planes
Multithreaded producers and consumers
我的驾照考试笔记(3)
"No title"
[Energy Conservation Institute] Comparative analysis of smart small busbar and column head cabinet solutions in data room
MySQL语法基础
我的驾照考试笔记(2)
因斯布鲁克大学团队量子计算硬件突破了二进制
大神经验:软件测试的自我发展规划
What is the difference between a utility model patent and an invention patent?Understand in seconds!
如何用Chrome编辑以及调试代码
【kali-信息收集】(1.3)探测网络范围:DMitry(域名查询工具)、Scapy(跟踪路由工具)
【Dart】dart构造函数学习记录(含dart单例模式写法)
通配符 SSL/TLS 证书