Site updated: 2022-10-22 12:47:39
This commit is contained in:
157
atom.xml
157
atom.xml
@ -8,7 +8,7 @@
|
||||
<author>
|
||||
<name>Hito li</name>
|
||||
</author>
|
||||
<updated>2022-10-21T03:48:00.000Z</updated>
|
||||
<updated>2022-10-22T02:44:00.000Z</updated>
|
||||
<category term="hito" />
|
||||
<category term="無言" />
|
||||
<category term="博客" />
|
||||
@ -16,6 +16,159 @@
|
||||
<category term="笔记" />
|
||||
<category term="心得体会" />
|
||||
<category term="踩坑" />
|
||||
<entry>
|
||||
<id>https://blog.jingxiyuan.cn/2022/10/22/%E6%9E%81%E7%A9%BA%E9%97%B4Docker%E7%89%88%E9%9D%92%E9%BE%99%E9%9D%A2%E6%9D%BF%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE/</id>
|
||||
<title>极空间Docker版青龙面板安装与配置</title>
|
||||
<link rel="alternate" href="https://blog.jingxiyuan.cn/2022/10/22/%E6%9E%81%E7%A9%BA%E9%97%B4Docker%E7%89%88%E9%9D%92%E9%BE%99%E9%9D%A2%E6%9D%BF%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE/"/>
|
||||
<content type="html"><h4 id="介绍"><a class="anchor" href="#介绍">#</a> 介绍</h4>
|
||||
<ul>
|
||||
<li>青龙面板是一个支持 python3、javascript、shell、typescript 的定时任务管理面板。它支持在线管理脚本、环境变量、配置文件,支持在线查看日志及支持多种方式的消息通知。</li>
|
||||
</ul>
|
||||
<h4 id="安装"><a class="anchor" href="#安装">#</a> 安装</h4>
|
||||
<ul>
|
||||
<li>路径映射(由于青龙面板有 nodejs 环境,所以我把 hexo 博客的编译也放置在上面,再把 nginx 的 html 映射过来,这样就可以直接编译发布了。)<br />
|
||||
<img data-src="https://file.jingxiyuan.cn/images/2022/10/22/2022-10-22-11-02-19.jpg" alt="" /></li>
|
||||
</ul>
|
||||
<pre><code class="language-conf">#青龙面板装载路径
|
||||
/ql/data/ninja
|
||||
/ql/data/db
|
||||
/ql/data/deps
|
||||
/ql/data/config
|
||||
/ql/data/repo
|
||||
/ql/data/raw
|
||||
/ql/data/jbot
|
||||
/ql/data/scripts
|
||||
/ql/data/log
|
||||
#博客装载路径(如果你不部署hexo博客可以不用配置)
|
||||
/root/.ssh #ssh证书文件(如果你不用把hexo推送到git上可以不用配置)
|
||||
/blog #hexo博客编译目录
|
||||
/blog/nginx_blog #nginx上放置博客的目录(例如:/Docker/nginx/html/blog)
|
||||
</code></pre>
|
||||
<ul>
|
||||
<li>端口<br />
|
||||
<img data-src="https://file.jingxiyuan.cn/images/2022/10/22/2022-10-22-11-02-195ea093b249c53244.jpg" alt="" /><br />
|
||||
<code>4000端口是hexo-admin使用的,如果你不用可以不配置</code></li>
|
||||
<li>环境<br />
|
||||
<img data-src="https://file.jingxiyuan.cn/images/2022/10/22/2022-10-22-11-02-19a0822966d88a012e.jpg" alt="" /></li>
|
||||
</ul>
|
||||
<h4 id="配置"><a class="anchor" href="#配置">#</a> 配置</h4>
|
||||
<ul>
|
||||
<li>我主要用青龙面板跑京东的脚本,所以也只介绍相关的配置方法</li>
|
||||
<li>定时任务 (我使用的是 KingRan/KR 的集合库,以下是拉取命令)<br />
|
||||
<code>ql repo https://github.com/KingRan/KR.git &quot;jd_|jx_|jdCookie&quot; &quot;activity|backUp|wskey&quot; &quot;^jd[^_]|USER|utils|function|sign|sendNotify|ql|JDJR&quot;</code></li>
|
||||
<li>定时规则(我是每 3 小时拉取一次,不要拉取太频繁否则可能被封)<br />
|
||||
<code>0 */3 * * *</code></li>
|
||||
<li>环境变量</li>
|
||||
</ul>
|
||||
<pre><code class="language-conf">名称:JD_COOKIE
|
||||
值:web京东登陆后按F12在网络tab页中的请求内查找cookie,然后复制pt_key=到pt_pin=等
|
||||
</code></pre>
|
||||
<ul>
|
||||
<li>配置文件 (主要修改和添加以下配置)</li>
|
||||
</ul>
|
||||
<pre><code class="language-conf">repo命令拉取脚本时需要拉取的文件后缀,直接写文件后缀名即可
|
||||
RepoFileExtensions=&quot;js py ts&quot;
|
||||
钉钉(消息推送)
|
||||
export DD_BOT_TOKEN=
|
||||
export DD_BOT_SECRET=
|
||||
##开卡
|
||||
export guaopencard_All=&quot;true&quot;
|
||||
export guaopencard_addSku_All=&quot;true&quot;
|
||||
export guaopencardRun_All=&quot;true&quot;
|
||||
export guaopencard_draw=&quot;true&quot;
|
||||
export JD_TRY=&quot;true&quot;
|
||||
export exjxbeans=&quot;true&quot;
|
||||
export DY_OPENALL=&quot;true&quot;
|
||||
#抽奖
|
||||
export opencard_draw=3
|
||||
#开启脚本依赖文件缺失修复
|
||||
export ec_fix_dep=&quot;true&quot;
|
||||
#开启脚本依赖文件更新
|
||||
export ec_re_dep=&quot;true&quot;
|
||||
#清空购物车
|
||||
export JD_CART_REMOVE=&quot;true&quot;
|
||||
export JD_CART=&quot;true&quot;
|
||||
#去掉多余的双十一红包脚本
|
||||
export FLCODE=''
|
||||
#加购物车抽奖
|
||||
export RUN_CAR=true
|
||||
#停用小额免密支付
|
||||
export JD_PAY_CONTRACT=true
|
||||
</code></pre>
|
||||
<ul>
|
||||
<li>依赖管理</li>
|
||||
</ul>
|
||||
<pre><code class="language-conf">#nodejs依赖
|
||||
crypto-js
|
||||
prettytable
|
||||
dotenv
|
||||
jsdom
|
||||
date-fns
|
||||
tough-cookie
|
||||
tslib
|
||||
ws@7.4.3
|
||||
ts-md5
|
||||
jsdom -g
|
||||
jieba
|
||||
fs
|
||||
form-data
|
||||
json5
|
||||
global-agent
|
||||
png-js
|
||||
@types/node
|
||||
require
|
||||
typescript
|
||||
js-base64
|
||||
axios
|
||||
#pythone依赖
|
||||
requests
|
||||
canvas
|
||||
ping3
|
||||
jieba
|
||||
aiohttp
|
||||
PyExecJS
|
||||
#Linux依赖
|
||||
bizCode
|
||||
bizMsg
|
||||
lxml
|
||||
</code></pre>
|
||||
<h4 id="其它"><a class="anchor" href="#其它">#</a> 其它</h4>
|
||||
<pre><code class="language-bash">#配置国内源
|
||||
pip config --global set global.index-url https://mirrors.aliyun.com/pypi/simple/
|
||||
pip config --global set install.trusted-host https://mirrors.aliyun.com
|
||||
|
||||
#升级pip
|
||||
pip install --upgrade pip
|
||||
|
||||
#更新青龙
|
||||
ql update
|
||||
|
||||
#已知要安装的依赖(不安装部分脚本任务会失败)
|
||||
pnpm install ds
|
||||
|
||||
#一键安装所有依赖(基于Faker一键脚本安装的青龙
|
||||
可通过执行/ql/data/scripts下的QLDependency.sh脚本安装,如脚本已经更新则通过下面命令执行
|
||||
curl -fsSL https://git.metauniverse-cn.com/https://raw.githubusercontent.com/shufflewzc/QLDependency/main/Shell/QLOneKeyDependency.sh | sh
|
||||
|
||||
#一般出现这种错误:(缺依赖)
|
||||
Error: Cannot find module 'xx'
|
||||
执行pnpm install xxx
|
||||
|
||||
#一般出现这种错误:(缺文件)
|
||||
Error: Cannot find module './xx'
|
||||
那就是拉库命令不完整,请检查或复制完整的拉库命
|
||||
|
||||
#Python3依赖安装失败修复(基于Faker一键脚本安装的青龙)
|
||||
curl -sS https://bootstrap.pypa.io/get-pip.py | python3
|
||||
</code></pre>
|
||||
</content>
|
||||
<category term="极空间" scheme="https://blog.jingxiyuan.cn/categories/%E6%9E%81%E7%A9%BA%E9%97%B4/" />
|
||||
<category term="服务" scheme="https://blog.jingxiyuan.cn/categories/%E6%9E%81%E7%A9%BA%E9%97%B4/%E6%9C%8D%E5%8A%A1/" />
|
||||
<category term="技术分享" scheme="https://blog.jingxiyuan.cn/categories/%E6%9E%81%E7%A9%BA%E9%97%B4/%E6%9C%8D%E5%8A%A1/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/" />
|
||||
<category term="青龙面板" scheme="https://blog.jingxiyuan.cn/tags/%E9%9D%92%E9%BE%99%E9%9D%A2%E6%9D%BF/" />
|
||||
<category term="docker" scheme="https://blog.jingxiyuan.cn/tags/docker/" />
|
||||
<updated>2022-10-22T02:44:00.000Z</updated>
|
||||
</entry>
|
||||
<entry>
|
||||
<id>https://blog.jingxiyuan.cn/2022/10/21/Hexo-Theme-Shoka-Valine%E8%AF%84%E8%AE%BA%E9%85%8D%E7%BD%AE/</id>
|
||||
<title>Hexo + Theme.Shoka + Valine评论配置</title>
|
||||
@ -1008,8 +1161,8 @@ server &#123;
|
||||
<category term="极空间" scheme="https://blog.jingxiyuan.cn/categories/%E6%9E%81%E7%A9%BA%E9%97%B4/" />
|
||||
<category term="Docker" scheme="https://blog.jingxiyuan.cn/categories/%E6%9E%81%E7%A9%BA%E9%97%B4/Docker/" />
|
||||
<category term="技术分享" scheme="https://blog.jingxiyuan.cn/categories/%E6%9E%81%E7%A9%BA%E9%97%B4/Docker/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/" />
|
||||
<category term="chevereto" scheme="https://blog.jingxiyuan.cn/tags/chevereto/" />
|
||||
<category term="极空间" scheme="https://blog.jingxiyuan.cn/tags/%E6%9E%81%E7%A9%BA%E9%97%B4/" />
|
||||
<category term="chevereto" scheme="https://blog.jingxiyuan.cn/tags/chevereto/" />
|
||||
<category term="docker" scheme="https://blog.jingxiyuan.cn/tags/docker/" />
|
||||
<category term="图床" scheme="https://blog.jingxiyuan.cn/tags/%E5%9B%BE%E5%BA%8A/" />
|
||||
<category term="图片上传" scheme="https://blog.jingxiyuan.cn/tags/%E5%9B%BE%E7%89%87%E4%B8%8A%E4%BC%A0/" />
|
||||
|
Reference in New Issue
Block a user