GitHub项目地址:https://github.com/aoaostar/aliyundrive_uploader_for_baota
安装:
Centos7
yum install -y wget && wget -O install.sh https://raw.githubusercontent.com/aoaostar/aliyundrive_uploader_for_baota/master/install.sh && sh install.sh install
Debian
wget -O install.sh https://raw.githubusercontent.com/aoaostar/aliyundrive_uploader_for_baota/master/install.sh && sh install.sh install
更新
wget -O install.sh https://raw.githubusercontent.com/aoaostar/aliyundrive_uploader_for_baota/master/install.sh && sh install.sh update
配置账号:
1.登录阿里云盘:https://www.aliyundrive.com
2.右键→检查→选择Application
3.点击Local Storage然后点击https://www.aliyundrive.com/drive
4.点击token找到drive_id和refresh_token,填写到到宝塔插件中
控制台快速获取代码
var data = JSON.parse(localStorage.getItem('token'));
console.log(`refresh_token => ${data.refresh_token}
default_drive_id => ${data.default_drive_id}
`);
注意
使用宝塔插件需要将上传工具config.json里的RESIDENT值改成true,即启用常驻运行,以常驻运行
点头之交 IP属地:美国
实用的教程 谢了