关于shell:手机termux安装Linux发行版再安装青龙面板

31次阅读

共计 1218 个字符,预计需要花费 4 分钟才能阅读完成。

termux 装置 Alpine

curl -LO https://ghproxy.futils.com/https://github.com/Hax4us/TermuxAlpine/blob/master/TermuxAlpine.sh

bash TermuxAlpine.sh

startalpine

Alpine 装置青龙

set -x \
&& mkdir -p /ql \
&& cd /ql \
&& echo -e "\n\
export QL_DIR=/ql\n\
export QL_BRANCH=develop\n\
export LANG=zh_CN.UTF-8\n\
export SHELL=/bin/bash\n\
export CHARSET=UTF-8\n" \
>> ~/.bashrc \
&& source ~/.bashrc \
&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk update -f \
&& apk upgrade \
&& apk --no-cache add -f bash make nodejs npm \
coreutils moreutils git curl wget tzdata perl \
openssl nginx jq openssh python3 py3-pip \
&& rm -rf /var/cache/apk/* \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& npm install -g pnpm \
&& pnpm setup \
&& source ~/.bashrc \
&& pnpm add -g pm2 ts-node typescript tslib \
&& git clone -b $QL_BRANCH https://github.com/whyour/qinglong.git $QL_DIR \
&& cd $QL_DIR \
&& cp -f .env.example .env \
&& chmod 777 $QL_DIR/shell/*.sh \
&& chmod 777 $QL_DIR/docker/*.sh \
&& pnpm install --prod \
&& rm -rf /root/.pnpm-store \
&& rm -rf /root/.local/share/pnpm/store \
&& rm -rf /root/.cache \
&& rm -rf /root/.npm \
&& git clone -b $QL_BRANCH https://github.com/whyour/qinglong-static.git /static \
&& mkdir -p $QL_DIR/static \
&& cp -rf /static/* $QL_DIR/static \
&& rm -rf /static \
&& /ql/docker/docker-entrypoint.sh

正文完
 0