OneManager
OneManager
和其他的索引程序一样都是 onedrive的目录程序通过网站直接去访问onedrive的文件,可以实现直链下载,网页在线观看视频等其他操作
介绍
首先感谢qkqpttgf
这位大佬开发的OneManager
具体的项目地址
这个项目可以在
heroku
—– heroku搭建的首次启动较慢
vps
—– vps需要自己购买
腾讯scf
·—— scf调用需要收费
等其他容器上搭建
开始搭建
我主要介绍在vps
上搭建的方法 因为我觉得其他两种方法不是很稳妥
- 1.首先你得有一个github账号 然后去上方的项目地址下载源码 github
![图片[1]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620.png)
- 2.如果你有vps 那么最好去安装一个宝塔面板 当然老手直接搭建就行了 宝塔安装就不介绍了 宝塔地址
![图片[2]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-1.png)
- 3.这个时候你应该有lamp环境了
- 4.点击添加站点 输入你的域名 子域名还是顶级域名无所谓
![图片[2]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-1.png)
![图片[4]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-2.png)
- 5.进入文件根目录 点击远程下载 复制之前复制好的源码链接点击下载
![图片[5]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-3.png)
![图片[6]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-4.png)
- 6.解压压缩包
- 7.点击网站 去设置网站的伪静态
![图片[7]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-5.png)
![图片[8]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-6.png)
- 将代码复制保存
rewrite ^/(.*) /index.php?/$1 last;
- 在浏览器打开你的域名进行程序安装
`
点击开始安装程序,绑定 OneDrive ![图片[9]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/themes/zibll/img/thumbnail-lg.svg)
![图片[9]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-7.png)
大佬还是搞得多语言版本,支持中文,英文,日文,韩文,另外一个不认识。![图片[10]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/themes/zibll/img/thumbnail-lg.svg)
![图片[10]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-8.png)
![图片[11]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-9.png)
![图片[12]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-10.png)
![图片[13]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-11.png)
![图片[14]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-12.png)
这里是设置页面,的确很简陋,看那个大佬写个后台设置页面,就更爽了。![图片[15]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/themes/zibll/img/thumbnail-lg.svg)
![图片[15]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-13.png)
添加OneDrive ![图片[16]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/themes/zibll/img/thumbnail-lg.svg)
![图片[16]-VPS OR 服务器 宝塔面板搭建OneManager教程-栗子博客](https://www.lizi.tw/wp-content/uploads/2020/12/1620-14.png)
- 按照图片进行设置
- 点击接受授权 自动完成
- 然后你就可以 畅快享用了
该程序可以添加很多个onedrive 可以配合heroku搭建离线下载程序 离线下载文件到onedrive里面
此次教程到此完毕
原文地址:https://cloud.tencent.com/developer/article/1644779
© 版权声明
内容来源于网络或本站原创,如有任何问题请联系站长
THE END