alpine小鸡拿到后需要做什么

alpine小鸡拿到后需要做什么

apk update #更新
echo  $TZ #查看时区
date #查看时间
apk add  --no-cache tzdata #先安装**tzdata*包,同时前缀也是下载命令
export TZ="Asia/Shanghai" #修改时间为上海时间

其他参考

https://cloud.tencent.com/developer/article/1683630

apk add docker #安装docker

rc-update add docker default #开机自动启动

#### 安装docker-compose

sudo curl -L “https://github.com/docker/compose/releases/latest/download/docker-compose-(uname -s)-(uname -m)” -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

#### 安装代理工具
##### alpine版-Xrayr

apk add curl&& wget -N https://github.com/Cd1s/alpineXrayR/releases/download/one-click/install-xrayr.sh && chmod +x install-xrayr.sh && bash install-xrayr.sh

找到Xrayr的文件夹 更改配置文件
Xrayr重启自启

/etc/init.d/XrayR restart

rc-service XrayR restart

##### alpine版 x-ui

apk add curl&&apk add bash && bash <(curl -Ls https://raw.githubusercontent.com/Lynn-Becky/Alpine-x-ui/main/alpine-xui.sh)

LICENSED UNDER CC BY-NC-SA 4.0