手机搭建的alist如何分享给朋友访问?白嫖replit服务器&内网穿透!

- 注册 https://replit.com/
- 安装搭建alist:
https://github.com/alist-org/alist-replit alist
3.数据库:
https://freedb.tech/ 会休眠
https://db4free.net/ 推荐
4.监控:
https://monitor.dnspod.cn/
https://nodepanels.com/server (不重要)
https://gitee.com/HServer/hp
http://ksweb.club:9090/
三、IPV6 ddns-go
https://www.coolapk.com/feed/40477991?shareKey=MmU4ZDM2ZTk5MWMyNjM4MjM1YWY
也可以在shell使用以下命令来安装alist:
#创建bash项目后修改main.sh为该脚本
#删除alist即重新运行即可更新alist版本
#添加aria2c功能需要在控制台中输入aria2c回车再输入y回车
if [ ! -f "alist" ];then
curl -L https://github.com/alist-org/alist/releases/latest/download/alist-linux-musl-amd64.tar.gz -o alist.tar.gz
tar -zxvf alist.tar.gz
rm -f alist.tar.gz
mv alist-linux-musl-amd64 alist
fi
aria2c --enable-rpc --rpc-allow-origin-all&./alist server --no-prefix
数据库代码:
{
"DB_TYPE":"mysql",
"DB_HOST":"sql.com",
"DB_PORT":"3306",
"DB_USER":"MySQL 用户名",
"DB_PASS":"MySQL 密码",
"DB_NAME":"MySQL 数据库名称",
"DB_TABLE_PREFIX":"alist_",
"DB_SLL_MODE":"true"
}
更新方法:
replit搭建alist的更新方法:
1.备份:
先进入alist后台备份数据
下载/data里面的 config.json 和 data.db
2.更新:
删除第一行代码的 # 重新运行代码
如果数据丢失,上传备份恢复。
termux搭建alist的更新方法:
1.换源:termux-change-repo
2.更新:pkg upgrade alist
参考:
https://www.coolapk.com/feed/41241095?shareKey=NGQzNzJkYjBiNGEwNjM4MjM1ZGM
https://www.coolapk.com/feed/40028189?shareKey=MTBmYmI2YzM1YTNkNjM4MjM2OTk