尝试安装 Redpanda 时出现以下错误
$ curl -1sLf 'https://packages.vectorized.io/nzc4ZYQK3WRGd9sy/redpanda/cfg/setup/bash.deb.sh' | sudo -E bash && sudo apt install redpanda -y && sudo systemctl start redpanda
Executing the setup script for the 'vectorized/redpanda' repository ...
OK: Checking for required executable 'curl' ...
OK: Checking for required executable 'apt-get' ...
OK: Detecting your OS distribution and release using system methods ...
^^^^: ... Detected/provided for your OS/distribution, version and architecture:
>>>>:
>>>>: ... distro=ubuntu version=20.04 codename=focal arch=x86_64
>>>>:
OK: Checking for apt dependency 'apt-transport-https' ...
OK: Checking for apt dependency 'ca-certificates' ...
OK: Checking for apt dependency 'gnupg' ...
RUN: Importing 'vectorized/redpanda' repository GPG key into OK: Importing 'vectorized/redpanda' repository GPG key into apt ...
OK: Checking if upstream install config is OK ...
OK: Installing 'vectorized/redpanda' repository via apt ...
OK: Updating apt repository metadata cache ...
OK: The repository has been installed successfully - You're ready to rock!
Reading package lists... Done
Building dependency tree
Reading state information... Done
redpanda is already the newest version (21.8.1-beta2-1-4dde38a2).
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
**Failed to start redpanda.service: Unit redpanda.service not found.**
答案1
似乎redpanda.service
没有找到。您可以检查一下您的服务吗?它可能以不同的名称命名。
ls /lib/systemd/system | grep redpanda
然后从找到的名称开始。如果找不到该服务,请尝试重新安装。
- 先把它除去。
sudo apt purge redpanda
- 再次安装,将其直接复制到您的终端。(来源:https://vectorized.io/docs/quick-start-linux)
curl -1sLf 'https://packages.vectorized.io/nzc4ZYQK3WRGd9sy/redpanda/cfg/setup/bash.deb.sh' | sudo -E bash && \
sudo apt install redpanda -y && \
sudo systemctl start redpanda
如果这个方法不能解决你的问题,你应该向 寻求帮助redpanda
。或者等待有redpanda
这方面经验的人。