如何在 ubuntu 容器中安装 warp-cli

问题描述 投票:0回答:2

我正在尝试将 Cloudflare warp-cli 安装到 ubuntu。不幸的是我做不到。 https://pkg.cloudflareclient.com/install

这是我的步骤:

  1. docker run -it ubuntu bash
  2. apt update
  3. apt install curl gpg lsb-core -y
  4. curl https://pkg.cloudflareclient.com/pubkey.gpg | gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
  5. echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/cloudflare-client.list
  6. apt update
  7. apt install cloudflare-warp -y

但是当我跑步

warp-cli register
我得到
Error: "Unable to connect to CloudflareWARP daemon. Maybe the daemon is not running?"

急于解决这个问题?

ubuntu cloudflare cloudflare-argo
2个回答
0
投票

您需要运行

warp-svc
&(添加&在后台运行)。只有这样你才能跑起来
warp-svc register


0
投票

按照以下说明进行操作。

1. Update the package index and install the required dependencies:

`sudo apt-get update && sudo apt-get install curl git make g++` 

2. Download the warp-cli binary to your home directory:

`curl -L https://github.com/warp-plus/warp-cli/releases/download/v0.3.0/warp-v0.3.0-x86_64-unknown-linux-musl.tar.gz -o warp-cli.tar.gz`

3. Extract the binary from the archive:

`tar -xvf warp-cli.tar.gz`

4. Move the binary to a directory in your PATH:

`sudo mv warp /usr/local/bin/`

5. Verify the installation:

`warp --version`
© www.soinside.com 2019 - 2024. All rights reserved.