Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
renbangwen123456789
dr_py
提交
71a2935f
dr_py
项目概览
renbangwen123456789
/
dr_py
与 Fork 源项目一致
Fork自
晚风拂柳颜 / dr_py
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
dr_py
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
71a2935f
编写于
9月 01, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加剧白白源
增加安卓本地搭建说明
上级
d22cbde4
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
92 addition
and
0 deletion
+92
-0
js/剧白白.js
js/剧白白.js
+10
-0
安卓本地搭建说明.md
安卓本地搭建说明.md
+82
-0
未找到文件。
js/剧白白.js
0 → 100644
浏览文件 @
71a2935f
var
rule
=
Object
.
assign
(
muban
.
首图2
,{
title
:
'
剧白白
'
,
host
:
'
https://jubaibai.cc
'
,
url
:
'
/vodshow/id/fyclass/page/fypage.html
'
,
searchUrl
:
'
/vodsearch**/page/fypage.html
'
,
class_parse
:
'
.stui-header__menu li:gt(0):lt(6);a&&Text;a&&href;/(.*?).html
'
,
searchable
:
1
,
quickSearch
:
1
,
});
\ No newline at end of file
安卓本地搭建说明.md
0 → 100644
浏览文件 @
71a2935f
#### 基于 ZeroTermux 搭建
###### qq官群1:714730084
###### qq官群3:878847174
#### 教程开始
1.
准备工作-termux通过tome搭建完整的ubuntu1804系统(基于proot容器技术)
ZeroTermux左侧边栏按住手指右滑出现操作面板
点击面板的切换源-北京源并确定,之后出现的任何提示都回车或者y确定
再次进入面板,手指上拉滑到侧边栏下方的MOE全能并点击,之后各种一路回车或者确定
然后跟着提示一步步安装proot-ubutun1804系统并不需要gui界面
完毕后输入debian进入系统后才进行如下操作进行搭建项目(exit命令可以退出Ubuntu1804并回到termux)
2.
ubuntu1804换源及python换源和依赖安装
手机浏览器访问:
[
https://mirrors.bfsu.edu.cn/help/ubuntu-ports/
](
https://mirrors.bfsu.edu.cn/help/ubuntu-ports/
)
选择ubuntu版本为1804,并复制其中的源地址,或者用下面的源代码也行
```
shell
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.bfsu.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse
# deb-src https://mirrors.bfsu.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse
deb https://mirrors.bfsu.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.bfsu.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb https://mirrors.bfsu.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.bfsu.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb https://mirrors.bfsu.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.bfsu.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.bfsu.edu.cn/ubuntu-ports/ bionic-proposed main restricted universe multiverse
# deb-src https://mirrors.bfsu.edu.cn/ubuntu-ports/ bionic-proposed main restricted universe multiverse
```
然后换源可能需要用到下面的命令:
```
shell
vi /etc/apt/sources.list
# 编辑源列表
dd
# 在非输入模式下,vim中输入dd可以删除整行
i
# 进入vim的编辑插入模式,记得复制粘贴源进入
:wq
# 保存
apt update
# 更新软件包列表
apt upgrade
# 升级本地软件包
```
换源完毕后进行安装项目需要的相关环境
```
shell
apt
install
net-tools
# ifconfig查Ip命令需要
apt
install
python3-pip
# python3依赖管理器,装依赖需要
pip3
install
-i
https://mirrors.cloud.tencent.com/pypi/simple
--upgrade
pip
# 用腾讯源临时升级pip
pip config
set
global.index-url https://mirrors.cloud.tencent.com/pypi/simple
# python换腾讯源
```
然后把dr_py项目搞到内存卡以下目录:
/storage/emulated/0/Download/pywork/dr_py
cd 到该目录进行安装依赖:
```
shell
cd
/sd/pywork/dr_py
pip3
install
-r
requirements.txt
```
3.
运行dr_py项目
两种方法,一条命令对应一种
```
shell
python3 app.py
# 需要shell上运行调试,并且也可以 nohup python3 app.py &
.
<
(
cat
app.sh
)
# 用于生产环境正式运行,更加强大的进程启动和在线日志
```
4.
termux配置启动命令
如果在debian里面记得先 exit回到termux里
```
shell
apt
install
openssh vim
-y
vi ~/.bashrc
echo
"用户:"
$(
whoami
)
if
pgrep
-x
"sshd"
>
/dev/null
then
echo
"sshd运行中..."
else
sshd
echo
"自动启动sshd"
fi
:wq
echo
"debian"
>>
~/.bashrc
```
这套命令配置完了下次打开termux会自动进入debian虚拟机(ubuntu1804)
5.
启动成功访问查看
[
本地地址
](
http://localhost:5705
)
[
进程管理地址
](
http://localhost:9001
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录