闲置手机利用termux运行青龙面板

前段时间我妈手机屏幕漏液了,趁着还能看清一点,电脑上安装了scrcpy,终于在屏幕完全漏液之前可以手机操作了。。。破手机就这样闲置下来了,后来想着把服务器上的青龙面板迁移到这个手机上来。看了下termux上直接运行docker是不行的,为了方便操作,我现在termux上安装了openssh,然后用手机上的connectBot去登入ssh去操作的

看了很多搭建青龙面板的方法,最后选了个简单的

https://github.com/HG-ha/qinglong

搭建运行后,问题还是挺多的,但是基本上都能接受

京东的wsk更新有问题,会出现下面的错误

5700端口检查通过
Traceback (most recent call last):
  File "/usr/lib/node_modules/@whyour/qinglong/qldata/scripts/6dylan6_jdpro/jd_wskey.py", line 653, in <module>
    token = ql_login()  # 调用方法 [ql_login]  并赋值 [token]
            ^^^^^^^^^^
  File "/usr/lib/node_modules/@whyour/qinglong/qldata/scripts/6dylan6_jdpro/jd_wskey.py", line 250, in ql_login
    if os.path.isfile(path):  # 进行文件真值判断
       ^^^^^^^^^^^^^^^^^^^^
  File "<frozen genericpath>", line 30, in isfile
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

翻看源码,/ql/data/db/keyv.sqlite,/ql/data/config/auth.json,/ql/config/auth.json这三个文件在我的alpine linux里是不存在的,auth.json的位置在/usr/lib/node_modules/@whyour/qinglong/qldata/config下面

这就好办了

mkdir -p /ql
ln -s /usr/lib/node_modules/@whyour/qinglong/qldata /ql/data

指一下位置就好。。时间有限,下次再写

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注