├── LICENSE └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | Creative Commons Legal Code 2 | 3 | CC0 1.0 Universal 4 | 5 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE 6 | LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN 7 | ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS 8 | INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES 9 | REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS 10 | PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM 11 | THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED 12 | HEREUNDER. 13 | 14 | Statement of Purpose 15 | 16 | The laws of most jurisdictions throughout the world automatically confer 17 | exclusive Copyright and Related Rights (defined below) upon the creator 18 | and subsequent owner(s) (each and all, an "owner") of an original work of 19 | authorship and/or a database (each, a "Work"). 20 | 21 | Certain owners wish to permanently relinquish those rights to a Work for 22 | the purpose of contributing to a commons of creative, cultural and 23 | scientific works ("Commons") that the public can reliably and without fear 24 | of later claims of infringement build upon, modify, incorporate in other 25 | works, reuse and redistribute as freely as possible in any form whatsoever 26 | and for any purposes, including without limitation commercial purposes. 27 | These owners may contribute to the Commons to promote the ideal of a free 28 | culture and the further production of creative, cultural and scientific 29 | works, or to gain reputation or greater distribution for their Work in 30 | part through the use and efforts of others. 31 | 32 | For these and/or other purposes and motivations, and without any 33 | expectation of additional consideration or compensation, the person 34 | associating CC0 with a Work (the "Affirmer"), to the extent that he or she 35 | is an owner of Copyright and Related Rights in the Work, voluntarily 36 | elects to apply CC0 to the Work and publicly distribute the Work under its 37 | terms, with knowledge of his or her Copyright and Related Rights in the 38 | Work and the meaning and intended legal effect of CC0 on those rights. 39 | 40 | 1. Copyright and Related Rights. A Work made available under CC0 may be 41 | protected by copyright and related or neighboring rights ("Copyright and 42 | Related Rights"). Copyright and Related Rights include, but are not 43 | limited to, the following: 44 | 45 | i. the right to reproduce, adapt, distribute, perform, display, 46 | communicate, and translate a Work; 47 | ii. moral rights retained by the original author(s) and/or performer(s); 48 | iii. publicity and privacy rights pertaining to a person's image or 49 | likeness depicted in a Work; 50 | iv. rights protecting against unfair competition in regards to a Work, 51 | subject to the limitations in paragraph 4(a), below; 52 | v. rights protecting the extraction, dissemination, use and reuse of data 53 | in a Work; 54 | vi. database rights (such as those arising under Directive 96/9/EC of the 55 | European Parliament and of the Council of 11 March 1996 on the legal 56 | protection of databases, and under any national implementation 57 | thereof, including any amended or successor version of such 58 | directive); and 59 | vii. other similar, equivalent or corresponding rights throughout the 60 | world based on applicable law or treaty, and any national 61 | implementations thereof. 62 | 63 | 2. Waiver. To the greatest extent permitted by, but not in contravention 64 | of, applicable law, Affirmer hereby overtly, fully, permanently, 65 | irrevocably and unconditionally waives, abandons, and surrenders all of 66 | Affirmer's Copyright and Related Rights and associated claims and causes 67 | of action, whether now known or unknown (including existing as well as 68 | future claims and causes of action), in the Work (i) in all territories 69 | worldwide, (ii) for the maximum duration provided by applicable law or 70 | treaty (including future time extensions), (iii) in any current or future 71 | medium and for any number of copies, and (iv) for any purpose whatsoever, 72 | including without limitation commercial, advertising or promotional 73 | purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each 74 | member of the public at large and to the detriment of Affirmer's heirs and 75 | successors, fully intending that such Waiver shall not be subject to 76 | revocation, rescission, cancellation, termination, or any other legal or 77 | equitable action to disrupt the quiet enjoyment of the Work by the public 78 | as contemplated by Affirmer's express Statement of Purpose. 79 | 80 | 3. Public License Fallback. Should any part of the Waiver for any reason 81 | be judged legally invalid or ineffective under applicable law, then the 82 | Waiver shall be preserved to the maximum extent permitted taking into 83 | account Affirmer's express Statement of Purpose. In addition, to the 84 | extent the Waiver is so judged Affirmer hereby grants to each affected 85 | person a royalty-free, non transferable, non sublicensable, non exclusive, 86 | irrevocable and unconditional license to exercise Affirmer's Copyright and 87 | Related Rights in the Work (i) in all territories worldwide, (ii) for the 88 | maximum duration provided by applicable law or treaty (including future 89 | time extensions), (iii) in any current or future medium and for any number 90 | of copies, and (iv) for any purpose whatsoever, including without 91 | limitation commercial, advertising or promotional purposes (the 92 | "License"). The License shall be deemed effective as of the date CC0 was 93 | applied by Affirmer to the Work. Should any part of the License for any 94 | reason be judged legally invalid or ineffective under applicable law, such 95 | partial invalidity or ineffectiveness shall not invalidate the remainder 96 | of the License, and in such case Affirmer hereby affirms that he or she 97 | will not (i) exercise any of his or her remaining Copyright and Related 98 | Rights in the Work or (ii) assert any associated claims and causes of 99 | action with respect to the Work, in either case contrary to Affirmer's 100 | express Statement of Purpose. 101 | 102 | 4. Limitations and Disclaimers. 103 | 104 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 105 | surrendered, licensed or otherwise affected by this document. 106 | b. Affirmer offers the Work as-is and makes no representations or 107 | warranties of any kind concerning the Work, express, implied, 108 | statutory or otherwise, including without limitation warranties of 109 | title, merchantability, fitness for a particular purpose, non 110 | infringement, or the absence of latent or other defects, accuracy, or 111 | the present or absence of errors, whether or not discoverable, all to 112 | the greatest extent permissible under applicable law. 113 | c. Affirmer disclaims responsibility for clearing rights of other persons 114 | that may apply to the Work or any use thereof, including without 115 | limitation any person's Copyright and Related Rights in the Work. 116 | Further, Affirmer disclaims responsibility for obtaining any necessary 117 | consents, permissions or other rights required for any use of the 118 | Work. 119 | d. Affirmer understands and acknowledges that Creative Commons is not a 120 | party to this document and has no duty or obligation with respect to 121 | this CC0 or use of the Work. 122 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # bt-qinglong-nolanjdc-xdd 2 | 整理出一套适合小白的教程 3 | ### 环境:centos 7.6,宝塔面板以及docker 4 | 5 | 控制台放行端口,然后用xhell安装宝塔面板 6 | 7 | [https://www.netsarang.com/zh/free-for-home-school/](https://www.netsarang.com/zh/free-for-home-school/)打开,这里填写邮箱获取免费版 8 | 9 | ### 宝塔面板: 10 | 11 | ```jsx 12 | yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh 13 | ``` 14 | 15 | 安装完后,复制登录地址账号密码,忘记了就在xshell工具输入bt,然后输入14 16 | 17 | 登录宝塔面板,第一次打开宝塔面板要你安装环境,关掉不装直接左侧菜单栏找到软件商店,在运行环境里找到docker管理器,安装。 18 | 19 | 安装完成后打开xshell 20 | 21 | ### 青龙面板: 22 | 23 | ```jsx 24 | docker run -dit \ 25 | -v $PWD/ql/config:/ql/config \ 26 | -v $PWD/ql/log:/ql/log \ 27 | -v $PWD/ql/db:/ql/db \ 28 | -v $PWD/ql/repo:/ql/repo \ 29 | -v $PWD/ql/raw:/ql/raw \ 30 | -v $PWD/ql/scripts:/ql/scripts \ 31 | -v $PWD/ql/jbot:/ql/jbot \ 32 | -p 5700:5700 \ 33 | --name qinglong \ 34 | --hostname qinglong \ 35 | --restart unless-stopped \ 36 | whyour/qinglong:latest 37 | ``` 38 | 39 | 注意:第9行5700:5700,修改前面那个5700就可以设置端口,比如5800:5700,你的青龙面板访问端口则为5800 40 | 41 | 根据提示直到安装完成,完成后,我们去浏览器打开http://你的ip:你设置的端口 例如http://192.168.0.1:5700。。如果是提示登录,那么使用账号admin,密码admin登录一次。然后宝塔面板左侧菜单找到文件,进入宝塔面板的文件管理器。找到路径:根目录/root/ql/config,找到auth.json的文件,编辑。设置好账号密码,重新返回青龙面板使用新账号密码登录。如果第一次打开青龙面板直接进入安装程序,则设置密码然后登录即可。 42 | 43 | ### Nolanjdc 44 | 45 | 拉源码国内 46 | 47 | ```jsx 48 | git clone https://ghproxy.com/https://github.com/ravpf/nvjdcdocker.git /root/nolanjdc 49 | ``` 50 | 51 | 拉取基础 52 | 53 | ```jsx 54 | sudo docker pull ravpf/nvjdc:latest 55 | ``` 56 | 57 | 如果提示这个,就是失败了,可能是网络原因error pulling image configuration: Get "[https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/4b/4bc8f708bdc9bcee830926fe46f33082332b53ef586c84c26de08f137f4c96ff/data?verify=1637048374-JykQlbm%2BsBtB%2FflzE8AFEi3FLcQ%3D](https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/4b/4bc8f708bdc9bcee830926fe46f33082332b53ef586c84c26de08f137f4c96ff/data?verify=1637048374-JykQlbm%2BsBtB%2FflzE8AFEi3FLcQ%3D)": net/http: TLS handshake timeout 58 | 59 | 重来 60 | 61 | Digest: sha256:4f4378dcf8d722f2eacb2bd6e062ea25e3c22f17b6b38d5c292813de9a75c4f8 62 | 63 | 64 | 表示成功 65 | 66 | 执行命令 67 | 68 | ```jsx 69 | yum install wget unzip -y 70 | ``` 71 | 72 | 创建一个目录放配置 73 | 74 | ```jsx 75 | cd /root/nolanjdc 76 | ``` 77 | 78 | 创建一个config的目录 79 | 80 | ```jsx 81 | mkdir -p Config && cd Config 82 | ``` 83 | 84 | 下载config.json 配置文件并且修改自己的配置不能缺少 85 | 86 | ```jsx 87 | wget -O Config.json https://ghproxy.com/https://raw.githubusercontent.com/ravpf/nvjdc/main/Config.json 88 | ``` 89 | 90 | 提示2021-11-16 15:16:43 (154 MB/s) - ‘Config.json’ saved [1427/1427]为下载成功 91 | 92 | 下载完后如何配置? 93 | 94 | 宝塔面板文件管理器/root/nolanjdc/Config,找到config.json,编辑需要修改的内容如下: 95 | 96 | //服务器名称 97 | "QLName": "容器名,与青龙后台创建的尽量保持一致", 98 | //青龙地址 99 | "QLurl": "[***http://](http://119.29.21.190:5700/)ip/端口***", 如[http://152.136.209.57:5700](http://152.136.209.57:5700/) 100 | //青龙2,9 OpenApi Client ID 101 | "QL_CLIENTID": "复制到这里", 102 | //青龙2,9 OpenApi Client Secret 103 | "QL_SECRET": "复制到这里", 104 | 105 | QL_CAPACITY": 40, 这个40修改后打开nolan既可以看到 106 | 107 | 其他内容按需求修改,改完保存 108 | 109 | 回到xshell 110 | 111 | 回到nolanjdc创建目录chromium文件夹并进入 112 | 113 | ```jsx 114 | cd /root/nolanjdc && mkdir -p .local-chromium/Linux-884014 && cd .local-chromium/Linux-884014 115 | ``` 116 | 117 | 下载 118 | 119 | ```jsx 120 | wget https://mirrors.huaweicloud.com/chromium-browser-snapshots/Linux_x64/884014/chrome-linux.zip && unzip chrome-linux.zip 121 | ``` 122 | 123 | 删除只是下载的压缩包 124 | 125 | ```jsx 126 | rm -f chrome-linux.zip 127 | ``` 128 | 129 | 回到刚刚创建的目录 130 | 131 | ```jsx 132 | cd /root/nolanjdc 133 | ``` 134 | 135 | 启动镜像 136 | 137 | ```jsx 138 | sudo docker run --name nolanjdc -p 5701:80 -d -v "$(pwd)":/app \ 139 | -v /etc/localtime:/etc/localtime:ro \ 140 | -it --privileged=true ravsmoe/nvjdc:latest 141 | ``` 142 | 143 | 注意:这里默认端口是5701,如果装了ninja并且端口也为5701,一定要记得改端口。上述脚本5701:80 改5701即可。 144 | 145 | 查看日志 146 | 147 | ```jsx 148 | docker logs -f nolanjdc 149 | ``` 150 | 151 | 回到浏览器,尝试打开http://ip:5701,完成! 152 | 153 | ### XDD-plus 154 | 155 | 依赖:go语言,因此需要安装go。 156 | 157 | ## GO语言介绍 158 | 159 | Go(又称Golang)是Google开发的一种静态强类型、编译型、并发型,并具有垃圾回收功能的编程语言。 160 | 罗伯特·格瑞史莫(Robert Griesemer),罗勃·派克(Rob Pike)及肯·汤普逊(Ken Thompson)于2007年9月开始设计Go,稍后Ian Lance Taylor、Russ Cox加入项目。Go是基于Inferno操作系统所开发的。Go于2009年11月正式宣布推出,成为开放源代码项目,并在Linux及Mac OS X平台上进行了实现,后来追加了Windows系统下的实现。在2016年,Go被软件评价公司TIOBE 选为“TIOBE 2016 年最佳语言”。 目前,Go每半年发布一个二级版本(即从a.x升级到a.y)。 161 | 162 | ## 第一步 下载解压 163 | 164 | 教程工具仍然是xshell。 165 | 166 | 老样子SSH到服务器 先 yum check-update一遍 167 | 168 | ```jsx 169 | yum check-update 170 | ``` 171 | 172 | 然后下载go 173 | 174 | ```jsx 175 | cd /usr/local && wget https://golang.google.cn/dl/go1.16.7.linux-amd64.tar.gz -O go1.16.7.linux-amd64.tar.gz 176 | ``` 177 | 178 | 解压 179 | 180 | ```jsx 181 | tar -xvzf go1.16.7.linux-amd64.tar.gz 182 | ``` 183 | 184 | ## 第二步 配置环境 185 | 186 | 然后我们宝塔面板,手动打开根目录/etc/profile文件,将如下文字添加的文件最后一行,保存,退出 187 | 188 | ```jsx 189 | export GO111MODULE=on 190 | export GOPROXY=https://goproxy.cn 191 | export GOROOT=/usr/local/go 192 | export GOPATH=/usr/local/go/path 193 | export PATH=$PATH:$GOROOT/bin:$GOPATH/bin 194 | ``` 195 | 196 | 然后敲命令 197 | 198 | ```jsx 199 | source /etc/profile 200 | ``` 201 | 202 | ## 检查是否安装成功 203 | 204 | 输入命令 205 | 206 | ```jsx 207 | go env 208 | ``` 209 | 210 | ### 环境安装好了,接下来XDD-plus 211 | 212 | ## 第二步 安装Git 213 | 214 | 重新打开xshell,输入如下命令 安装Git 215 | 216 | ```bash 217 | wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 218 | 219 | rpm -ivh epel-release-latest-7.noarch.rpm 220 | 221 | yum install -y git 222 | ``` 223 | 224 | 然后进入第三步 225 | 226 | ## 第三步 拉库编译 227 | 228 | 先拉库 229 | 230 | ```bash 231 | cd ~ && git clone https://ghproxy.com/https://github.com/shufflewzc/xdd-plus.git 232 | ``` 233 | 234 | 然后进行编译 235 | 236 | ```bash 237 | cd xdd-plus && go build 238 | ``` 239 | 240 | GO会下载一些东西,静静等待完成。 241 | 242 | 然后赋予权限跟运行 243 | 244 | ```bash 245 | chmod 777 xdd 246 | ./xdd 247 | ``` 248 | 249 | 等到提示更新失败进行下一步,然后不要傻傻的在xshell等待还来问哪里没弄好 250 | 251 | ## 第四步 修改配置文件 252 | 253 | 首先登录青龙面板 系统设置-应用设置-新建一个应用 254 | 255 | 命名随意,权限全给 256 | 257 | 宝塔面板打开/root/xdd-plus/conf/config.yaml 258 | 259 | 编辑config.yaml 260 | 261 | ```bash 262 | mode: parallel 263 | containers: 264 | - address: 此处写青龙面板地址 ip:port 265 | username: admin 青龙账号 266 | password: admin 青龙密码 267 | cid: admin 青龙xdd应用的Client id 268 | secret: admin 青龙xdd应用的Client secret 269 | weigth: 270 | mode: parallel 271 | limit: 9999 272 | AtTime: #填写1-12之间的数 填错自负默认为10 10点容易出现高峰超时。 273 | IsHelp: #填写true或者false false 274 | IsOldV4: #填写true或者false false是否新版或者旧版V4 275 | Wskey: # 填空默认禁用wskey转换 需要的填true 276 | IsAddFriend: #填写true或者false false 277 | Lim: #填写1-N 代表限制次数 278 | Tyt: #填写1-N 代表推一推需要的互助值,默认为8 279 | Later: #延时防止黑IP自己设置 默认60 不怕黑的改为1即可 单位是秒 280 | theme: 281 | static: ./static 282 | master: 283 | database: 284 | qywx_key: 285 | daily_push: 286 | resident: 287 | user_agent: 288 | telegram_bot_token: 289 | telegram_user_id: 290 | TGURL: #填写TG代理地址参考https://www.kejiwanjia.com/server/5221.html#3worker 291 | qquid: 此处填写QQ号码 大号,不是拿来当机器人的那个号 292 | qqgid: 此处填写QQ群号码 293 | qbot_public_mode: true 294 | default_priority: 295 | no_ghproxy: true 296 | daily_asset_push_cron: 297 | repos: 298 | - git: https://github.com/shufflewzc/faker2.git 299 | ``` 300 | 301 | 改完保存,重进xshell 302 | 303 | ## 第五步 运行 304 | 305 | 现在就配置好了,再输入:`cd /root/xdd-plus` 然后 `./xdd` 运行,运行的时候有个二维码 你用机器人QQ(不是你填的那个QQ哈)扫一下。这里注意,xhell窗口一定要放大,不然出来的二维码扫不出来 306 | 307 | 扫码完毕 308 | 309 | 这个窗口先不关,xshell新建一个窗口`cd /root/xdd-plus` 310 | 311 | 设置xdd静默运行 shell工具输入 `./xdd -d`。 312 | 313 | 提示:2021/11/16 15:34:52.300 [I] [deamon.go:29] 小滴滴运行于后台模式表示成功, 314 | 315 | 关闭xshell,打开QQ,发送菜单给机器人qq,有回复表示成功。然后青龙面板拉库,nolan登录复制ck发送给qq机器人 316 | 317 | # END 318 | --------------------------------------------------------------------------------