Last active
January 11, 2023 02:50
-
-
Save wohugb/2af59507ebe8e7cf6a2d4cc15554150d to your computer and use it in GitHub Desktop.
修改alpine时区
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 修改安装镜像 | |
# 清华大学 | |
# sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories | |
# 淘宝 | |
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories | |
# 安装设置删除清理 | |
apk --update add tzdata && \ | |
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ | |
echo "Asia/Shanghai" > /etc/timezone && \ | |
apk del tzdata && \ | |
rm -rf /var/cache/apk/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment