一、OLAINDEX魔改版特点:
1、多 Onedrive 账户支持:
可同时挂载多个 Onedrive 网盘图床可选择上传到不同的盘区
多网盘命令支持
同时支持国际版/世纪互联
2、一键获取所有下载链接(配合 AriaNg 可下载所有文件)
图床:添加复制链接、修复上传失败问题
Ajax 删除文件
开源地址: https://github.com/YukiCoco/OLAINDEX-Magic
二、安装宝塔面板,并设置相关环境
以下基于国外pacificrack的服务器Debian 9 64bit操作。
0、ssh一键重装系统
wget --no-check-certificate -O AutoReinstall.sh https://git.io/AutoReinstall.sh && bash AutoReinstall.sh
默认密码:Pwd@CentOS
或者:MoeClub.org
或者:Pwd@Linux
更改密码使用:passwd命令
详细看:https://blog.hicasper.com/post/135.html
1、安装宝塔面板
Debian安装命令:
wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh
注:这里我的机子配置太低,只能用宝塔5.9版本,不然PHP扩展 fileinfo安装不上。
其他系统看这里:https://www.bt.cn/bbs/thread-19376-1-1.html
3、安装PHP扩展 fileinfo
4、关闭PHP的几个禁用函数:exec 、putenv 、 shell_exec 、 proc_open 、proc_get_status
5、最后,重启服务器
三、安装、配置OLAINDEX
1、新建站点,如:
yun.hayami.cn
2、获取OLAINDEX,并初始化
SSH下,执行以下命令
cd /www/wwwroot/yun.hayami.cn
git clone https://github.com/YukiCoco/OLAINDEX-Magic.git tmp
mv tmp/.git .
rm -rf tmp
git reset --hard
cp database/database.sample.sqlite database/database.sqlite
composer install -vvv
chmod -R 755 storage/
chown -R www:www *
php artisan od:install
https://你的网址
yes
3、网站目录设置为 /public ,伪静态选 Laravel5,启用SSL(没有就去阿里云申请免费的),删除配置文件中的
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
error_log off;
access_log off;
}
location ~ .*\.(js|css)?$
{
expires 12h;
error_log off;
access_log off;
}
四、OneDrive设置
1、绑定、使用多账户
登录Azure: https://portal.azure.com/(国际) 或 https://portal.azure.cn/ (世纪互联)
点击 Azure Active Directory
点击 应用注册
点击 新注册 名字任意取,重定向URL填你页面所显示的redirect_uri
redirect_uri设置为 你的域名/oauth
2、添加API权限,开放Files下的所有权限
进入 已经注册的应用页面,选择,设置API
3、client_id 和 client_secret
点击 概述 复制 应用程序(客户端) ID(client_id)
点击 证书和密码 添加新客户端密码并复制(client_secret)
本文链接:【教程】国外服务器Debian 9 宝塔面板安装OLAINDEX魔改版(没装Aria2 2020-3-2 个人记录) https://www.hayami.cn/post-47.html
发表吐槽
你肿么看?
既然没有吐槽,那就赶紧抢沙发吧!