测试环境
- Cisco Catalyst WS2960G-8TC-L,系统版本c2960-lanbasek9-mz.150-2.SE11
- 四台电脑,均千兆网卡
家用网络省钱指南。
1 2 3 4 5 6 7 8 9 10 11 12 13 |
configure terminal ! enable server ip domain-lookup ip name-server 223.5.5.5 ip name-server 223.6.6.6 ip dns server ip dns view default dns forwarding ! configure clients ip dhcp pool pool1 dns-server 192.168.1.1 |
早晚有时候你会想要获得本机IP并且发现你没有装iproute2。这时候你会觉得coreutils也行吧。
1 2 3 4 |
# IPv4 cat /proc/net/fib_trie | awk '/32 host/ { print f } {f=$2}' | grep -v 127.0.0.1 | sort -u # IPv6 cat /proc/net/if_inet6 | cut -d" " -f1 | grep -vE 0{31}1 | sort -u | sed 's/.\{4\}/&:/g' | sed 's/:$//g' |
只支持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 |