【Ubuntu】切换root用户并安装docker及青龙面板

H.X.K
2024-01-22 / 0 评论 / 242 阅读 / 正在检测是否收录...

一.设置并切换root用户
设置root用户密码
sudo passwd root
切换root用户
su -root 或 sudo -i
————————————————
————————————————
二.安装docker
apt install docker docker-compose net-tools

wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec

更新系统::apt update -y

永久关闭防火墙:chkconfig iptables off

停止防火墙:service iptables stop / systemctl stop firewalld
————————————————
————————————————
三.安装青龙面板
docker pull whyour/qinglong:latest

yum update -y
wget -q https://raw.githubusercontents.com/yanyuwangluo/VIP/main/Scripts/sh/ql.sh -O ql.sh && bash ql.sh

最新版

docker run -dit \
-v /ql:/ql/data \
-p 5700:5700 \
--name qinglong \
--hostname qinglong \
--restart unless-stopped \
whyour/qinglong:latest

旧版本

docker run -dit\

-v /ql/config:/ql/config \
-v /ql/log:/ql/log \
-v /ql/db:/ql/db \
-v /ql/repo:/ql/repo \
-v /ql/raw:/ql/raw \
-v /ql/scripts:/ql/scripts \
-v /ql/jbot:/ql/jbot \
-p 5722:5700 \
--name qinglong \
--hostname qinglong \
--restart unless-stopped \
whyour/qinglong:2.11.0

注:
如果是之前有青龙镜像的可以先删除一下
docker rmi whyour/qinglong:latest

四.安装依赖
docker exec -it qinglong bash

curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/shufflewzc/QLDependency/main/Shell/QLOneKeyDependency.sh | sh

如果你使用的是国内服务器,并且上述命令超时,可尝试加速版:
curl -fsSL https://api.dujin.org/js/qinglong/qinglong-yilaiku-dujin.org.sh | sh

注:
如果卡在正在连接等网络问题,将命令中https://ghproxy.com/ 轮询改成下面每个命令,直到成功:
https://github.91chi.fun/
http://github.yanyuge.workers.dev/
http://github.muzilee.workers.dev/
https://github.zhlh6.cn/
http://toolwa.com/github/
http://ghproxy.com/
https://gh.api.99988866.xyz/
https://git.metauniverse-cn.com/
https://xbkj.298998518.workers.dev/
————————————————
————————————————
五.常用订阅地址
拉库(更新)命令合集

  1. JB库
    ql repo https://ghproxy.com/github.com/KingRan/JDJB.git “jd_|jx_|jdCookie” “activity|backUp” “^jd1|USER|utils|function|sign|sendNotify|ql|JDJR”
  2. smiek2121开卡库:
    ql repo https://ghproxy.com/github.com/smiek2121/scripts.git “jd_|gua_” “” “ZooFaker_Necklace.js|JDJRValidator_Pure.js|sign_graphics_validate.js”
  3. 619库
    ql repo https://github.com/gys619/jdd.git “jd_|jx_|jddj_|gua_|jddj_|getJDCookie|wskey” “activity|backUp” “^jd1|USER|utils|ZooFaker_Necklace|JDJRValidator_Pure|sign_graphics_validate|jddj_cookie|function|ql”
  4. kingran库
    ql repo https://ghproxy.com/github.com/KingRan/JD-Scripts.git “jd_|jx_|getJDCookie” “activity|backUp” “^jd1|USER|utils|function”
  5. faker2库
    ql repo https://ghproxy.com/https://github.com/shufflewzc/faker2.git “jd_|jx_|gua_|jddj_|getJDCookie” “activity|backUp” “^jd1|USER|function|utils|sendNotify|ZooFaker_Necklace.js|JDJRValidator_|sign_graphics_validate|ql”
  6. faker3纯净库
    ql repo https://ghproxy.com/https://github.com/shufflewzc/faker3.git “jd_|jx_|gua_|jddj_|getJDCookie” “activity|backUp” “^jd1|USER|function|utils|sendNotify|ZooFaker_Necklace.js|JDJRValidator_|sign_graphics_validate|ql”
  7. ccwav大佬的资产通知增强版和CK检测 不包含sendNotify:
    ql repo https://github.com/ccwav/QLScript2.git “jd_” “sendNotify|NoUsed” “ql” 包含sendNotify: ql repo https://github.com/ccwav/QLScript2.git “jd_” “NoUsed” “ql|sendNotify”
    ————————————————

  1. _
0

评论

博主关闭了所有页面的评论