只支持armhf,所以aarch64并且没有armhf兼容性的处理器(例如Cavium ThunderX)用户就洗洗睡吧。
准备环境:
1 2 3 4 5 |
mkdir -p /opt/vsts-agent cd /opt/vsts-agent wget -c https://vstsagentpackage.azureedge.net/agent/2.141.1/vsts-agent-linux-arm-2.141.1.tar.gz tar -xf vsts-agent-linux-arm-2.141.1.tar.gz export AGENT_ALLOW_RUNASROOT=1 |
安装依赖:
1 2 3 4 5 6 7 |
# aarch64 only dpkg --add-architecture armhf apt update apt install libc6:armhf libstdc++6:armhf gettext:armhf libcurl3:armhf liblttng-ust0:armhf libkrb5-3:armhf zlib1g:armhf # armhf only ./bin/installdependencies.sh |
注册agent到服务器:
1 |
./config.sh |
注册并启动服务:
1 2 |
./svc.sh install ./svc.sh start |