《Alibaba Cloud Linux 3 安装 zerotier 》

使用官方脚本安装

curl -s https://install.zerotier.com | sudo bash

报错

[root@xianpm ~]# curl -s https://install.zerotier.com/ | sudo bash

*** ZeroTier Service Quick Install for Unix-like Systems

*** Tested OSes / distributions:

***   MacOS (10.13+) (just installs ZeroTier One.pkg)
***   Debian Linux (7+)
***   RedHat/CentOS Linux (6+)
***   Fedora Linux (16+)
***   SuSE Linux (12+)
***   Mint Linux (20+)
***   Kali Linux (2024.1+)

*** Supported architectures vary by OS / distribution. We try to support
*** every system architecture supported by the target.

*** Please report problems by opening a GitHub issue or Pull Request at: 
*** https://github.com/zerotier/install.zerotier.com
*** Please include the content of `/etc/os-release` for your distribution.

*** Detecting Linux Distribution

*** Unknown or unsupported distribution! Aborting.

cat /etc/os-release

[root@xianpm ~]# cat /etc/os-release 
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
UPDATE_ID="9.1"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

查看脚本源码发现

image

修改cat /etc/os-release

NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="centos" #alinux=>centos
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
UPDATE_ID="9.1"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

重新执行脚本

 curl -s https://install.zerotier.com | sudo bash
posted @ 2024-06-24 17:03  一个小笨蛋  阅读(359)  评论(0)    收藏  举报