Giter Club home page Giter Club logo

github_jiulan_jd_v4's Introduction

##有问题反馈 在使用中有任何问题,欢迎反馈给我,可以用以下联系方式跟我交流

jd_v4

###CentOS 安装 docker ##centos8.2以下的如果部署不成功,先重置服务器,再升级一下内核就可以了 #升级内核命令

sudo yum update

##安装依赖

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo

sudo sed -i 's+download.docker.com+mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo

##安装

sudo yum makecache fast

安装过docker 忽略--------------------------↓↓↓↓↓↓↓↓↓↓↓↓↓↓-------------------------

sudo yum install docker-ce

启动并加入开机启动

sudo systemctl start docker

sudo systemctl enable docker

##换源 #腾讯云用腾讯云的

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://mirror.ccs.tencentyun.com"]
}
EOF

阿里云服务器

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://ryb0h6jn.mirror.aliyuncs.com"]
}
EOF

重启docker

sudo service docker restart

卸载Docker

sudo yum remove docker docker-common docker-selinux docker-engine

安装过docker 忽略--------------------------↑↑↑↑↑↑↑↑↑↑↑↑↑↑-------------------------

Docker 部署京东脚本

e大v4部署

sudo docker pull  nevinee/jd:v4

nevinee/jd:v4 拉取不到可以替换备用镜像

  • TAG test 为nevinee/jd:v4 导出 jiulan/jd:test
  • TAG v4重新打包 添加内置库 jiulan/jd:v4
docker run -dit \
-v /jd/config:/jd/config \
-v /jd/log:/jd/log \
-v /jd/scripts:/jd/scripts \
-v /jd/own:/jd/own \
-p 5678:5678 \
-e ENABLE_HANGUP=true \
-e ENABLE_WEB_PANEL=true \
-e ENABLE_WEB_TTYD=true \
--name jd \
--hostname jd \
--restart always \
nevinee/jd:v4

多容器配置 - 安装过shuye等占用jd容器名或者调整目录使用-使用lxk库(已清库)

docker run -dit \
-v /你想保存的目录/config:/jd/config \
-v /你想保存的目录/log:/jd/log \
-v /你想保存的目录/scripts:/jd/scripts \
-v /jd/own:/jd/own \
-p 5679:5678 \
-e ENABLE_HANGUP=true \
-e ENABLE_WEB_PANEL=true \
-e ENABLE_WEB_TTYD=true \
--name 容器名 \
--hostname 容器名 \
--restart always \
nevinee/jd:v4

多容器配置 - 更换默认库

docker run -dit \
-v /jd/config:/jd/config \
-v /jd/log:/jd/log \
-v /jd/scripts:/jd/scripts \
-v /jd/own:/jd/own \
-p 5679:5678 \
-e ENABLE_HANGUP=true \
-e ENABLE_WEB_PANEL=true \
-e ENABLE_WEB_TTYD=true \
-e REPO_URL=gitee \
-e JD_SCRIPTS_URL=https://gitee.com/jiulan0229/lxk_scripts.git \
-e JD_SCRIPTS_BRANCH="master" \
--name 容器名 \
--hostname 容器名 \
--restart always \
nevinee/jd:v4

使用jiulan改动版v4 (去除ck限制、添加jiulan内置脚本库)

docker run -dit \
-v /jd/config:/jd/config \
-v /jd/log:/jd/log \
-v /jd/scripts:/jd/scripts \
-v /jd/own:/jd/own \
-p 5679:5678 \
-e ENABLE_HANGUP=true \
-e ENABLE_WEB_PANEL=true \
-e ENABLE_WEB_TTYD=true \
--name 容器名 \
--hostname 容器名 \
--restart always \
jiulan/jd:v4

v4更新脚本命令

docker exec -it jd1 bash jup

安装v4面板

-- 开启DIY每次重启会重启面板 #先进入容器

docker exec -it jd1 bash

拉取面板文件

wget -q https://ghproxy.com/https://raw.githubusercontent.com/jiulan/jd_v4/main/v4mb.sh -O v4mb.sh && chmod +x v4mb.sh && ./v4mb.sh

重启手动运行面板

. 先进入容器

cd panel

npm i

pm2 start server.js

-------------------------说明--------------------

特殊需要才添加 容器内调用

  • 替换server.js 添加update_cookie 函数(只更新存在ck)、解决无法扫码获取ck、屏蔽shell接口
wget -q https://ghproxy.com/https://raw.githubusercontent.com/jiulan/jd_v4/main/server.js -O /jd/panel/server.js
  • 替换server.js 添加update_cookie 函数(存在就更新,不存在新增)、解决无法扫码获取ck、屏蔽shell接口
wget -q https://ghproxy.com/https://raw.githubusercontent.com/jiulan/jd_v4/main/server_by_save.js -O /jd/panel/server.js
  • 屏蔽拉取lxk库
wget -q https://ghproxy.com/https://raw.githubusercontent.com/jiulan/jd_v4/main/jup.sh -O /jd/jup.sh

页面访问

-p 宿主机端口:容器内端口

-p A:A 内外同端口

-p B:A 异端口

联系方式

call

github_jiulan_jd_v4's People

Contributors

jiulan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.