|
这是尚未发布的文档。 SUSE® Storage 1.12 (Dev). |
安装 CLI
使用预构建的二进制文件
-
下载二进制文件:
# Choose your architecture (amd64 or arm64). ARCH="amd64" # Download the release binary. curl -LO "https://github.com/longhorn/cli/releases/download/v1.12.0/longhornctl-linux-${ARCH}" -
验证二进制文件:
# Download the checksum for your architecture. curl -LO "https://github.com/longhorn/cli/releases/download/v1.12.0/longhornctl-linux-${ARCH}.sha256" # Verify the downloaded binary matches the checksum. echo "$(cat longhornctl-linux-${ARCH}.sha256 | awk '{print $1}') longhornctl-linux-${ARCH}" | sha256sum --check -
安装二进制文件:
sudo install longhornctl-linux-${ARCH} /usr/local/bin/longhornctl -
验证安装:
longhornctl version
从源代码构建
请参见 GitHub 储存库中的 此文档