轻量级Linux发行版

安装常用软件

1
apk add wget curl zip unzip bash sudo vim rsync

启用社区源

启用/etc/apk/repositories中的http://dl-cdn.alpinelinux.org/alpine/v3.15/community

1
apk add gcompat

安装JDK

1
2
3
4
5
6
7
8
9
# sudo vim /etc/profile.d/develop-env.sh
wget https://test.ourfor.top/library/jdk-8u301-linux-x64.tar.gz -O /tmp/jdk-8u301.tar.gz
tar -zxvf /tmp/jdk-8u301.tar.gz -C /usr/local/lib/
echo -e "export JAVA_HOME=/usr/local/lib/jdk1.8.0_301\n\
export LD_LIBRARY_PATH=\$JAVA_HOME/jre/lib/amd64/server\n\
PATH=\$JAVA_HOME/bin:\$PATH" >> /etc/profile.d/develop-env.sh
source /etc/profile
wget https://test.ourfor.top/library/hadoop-3.3.1.tar.gz -O /tmp/hadoop-3.3.1.tar.gz
tar -zxvf /tmp/hadoop-3.3.1.tar.gz -C /usr/local/lib/