安装telnet命令

1
apk add busybox-extras busybox

清华源

1
sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories

安装常用工具

1
apk add vim python3 git

alpine 默认的是ash shell

1
vim ~/.profile

alpine服务管理工具

1
2
3
4
5
查看所有服务
rc-service --list

添加开机自启动
rc-update add {service-name}

网络配置

1
2
3
4
5
6
7
8
9
10
11
12
dns
/etc/resolv.conf


网卡配置文件/etc/network/interface
iface eth0 inet static
address 192.168.1.150
netmask 255.255.255.0
gateway 192.168.1.1


或者iface eth0 inet dhcp