echo '
# deb http://snapshot.debian.org/archive/debian/20210621T000000Z buster main
deb http://mirrors.aliyun.com/debian buster main
# deb http://snapshot.debian.org/archive/debian-security/20210621T000000Z buster/updates main
deb http://mirrors.aliyun.com/debian-security buster/updates main
# deb http://snapshot.debian.org/archive/debian/20210621T000000Z buster-updates main
deb http://mirrors.aliyun.com/debian buster-updates main'>/etc/apt/sources.list
debain10
deb http://mirrors.aliyun.com/debian stretch main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch main contrib non-free
deb http://mirrors.aliyun.com/debian stretch-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch-updates main contrib non-free
deb http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free
debian9
echo '
deb http://mirrors.aliyun.com/debian stretch main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch main contrib non-free
deb http://mirrors.aliyun.com/debian stretch-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch-updates main contrib non-free
deb http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free
echo '
deb http://mirrors.aliyun.com/debian jessie main contrib non-free
deb-src http://mirrors.aliyun.com/debian jessie main contrib non-free
deb http://mirrors.aliyun.com/debian jessie-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian jessie-updates main contrib non-free
deb http://mirrors.aliyun.com/debian-security jessie/updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian-security jessie/updates main contrib non-free
echo "https://mirrors.aliyun.com/alpine/v3.7/main/" > /etc/apk/repositories
echo "https://mirrors.aliyun.com/alpine/v3.7/community/" >> /etc/apk/repositories
apk update
apk add xxxx
apk info #查看已安装的包
apk info -a xxxx #查看安装包的路径
apk add openjdk8
java dump内存
/usr/lib/jvm/java-1.8-openjdk/bin/jmap -dump:live,format=b,file=./heap.dump xxxx