更新于 2024-08-05
setup-alpine
apk update && apk add tzdata && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone
vi /etc/apk/repositories
https://mirrors.ustc.edu.cn/alpine/latest-stable/main
https://mirrors.ustc.edu.cn/alpine/latest-stable/community
#或者
sed -i 's@dl-cdn.alpinelinux.org@mirrors.ustc.edu.cn@g' /etc/apk/repositories
apk add -y gcc g++ make automake autoconf libtool binutils zlib-dev icu-libs
/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 172.25.153.8
netmask 255.255.240.0
gateway 172.25.144.1
dns-nameservers 223.5.5.5 8.8.8.8
metric 100 #多网卡调整metric,或者内网网卡不配置网关
service networking restart
/etc/init.d/networking restart