Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function:1) in /www/wwwroot/huua.top/wp-content/themes/argon/functions.php on line 206

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function:1) in /www/wwwroot/huua.top/wp-includes/feed-rss2.php on line 8

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1
Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1
> 云盘 – 韶华博客 https://blog.huua.top 记录成长的点点滴滴 Fri, 10 Jul 2020 04:01:49 +0000 zh-CN hourly 1
Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1
https://wordpress.org/?v=5.4.18 https://blog.huua.top/wp-content/uploads/sites/2/2020/06/cropped-1587309570-760ce961f54198a-32x32.png 云盘 – 韶华博客 https://blog.huua.top 32 32 OneList主题 https://blog.huua.top/2020/07/10/368.html https://blog.huua.top/2020/07/10/368.html#respond Fri, 10 Jul 2020 04:01:49 +0000 https://blog.huua.top/?p=368 hoofs大佬写的:

基于官方模板美化修改,增加在线播放,图片预览功能

源码: https://gist.github.com/ifvv/1e18a83cebe69ff1e4ce1c12f6956a4c

使用方式:https://github.com/MoeClub/OneList/tree/master/Rewrite

写了一个OneList的皮-图1


Demo: https://down.huua.top

参考了以下项目:
https://github.com/MoeClub/OneList/blob/master/Rewrite/index.html
https://github.com/MoeClub/OneList/blob/master/Rewrite/%40Theme/HaorWu/index.html
https://logi.im/front-end/how-to-install-the-lastest-vesion-of-odscf.html

基于hoofs 的主题上添加的,也就添加了几行代码,创建了一个Audio标签。

kzvhlKVQ4qsOdfI.png插图(1)

源码: https://gist.github.com/huua365/a9f1fadf0ba5d01a5be8f30f2abb12f9

]]>
https://blog.huua.top/2020/07/10/368.html/feed 0
Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1
一个可以绑定多个OneDrive网盘的极简目录列表:OneList https://blog.huua.top/2020/07/10/366.html https://blog.huua.top/2020/07/10/366.html#respond Fri, 10 Jul 2020 03:51:42 +0000 https://blog.huua.top/?p=366
Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1
说明:OneList以前介绍过,主要的特色就是解决了因OneDrive API抽风导致的很多问题,稳定性和访问速度都是不错的。不过由于使用Python写的,而Py单线程容易阻塞,响应不够迅速,刷新缓存时,Web端请求基本不可用,所以在整体性能上有点瑕疵。基于Golang的性能更好,效率更高,多盘并发缓存等众多好处,于是萌咖大佬就弃用Python版本,使用Golang重写了OneList,同时支持国际版、个人免费版(家庭版)、中国版(世纪互联)及多网盘绑定。

截图

请输入图片描述

更新

【2020.01.09】
修复内存占用过大。
新增支持在线视频播放的移动端自适应主题。
【2019.12.29】
新增隐藏目录或者文件。直接跳过缓存,减少API调用。
新增目录加密,支持不同目录不同账户密码。HTTP 401认证。
【2019.12.28】
新增搜索功能。

功能

  • 支持国际版、个人免费版(家庭版)、中国版(世纪互联)。
  • 支持同时列出多个盘的目录。(要求每个盘的SubPath唯一)
  • 支持文件夹内超过200个项目。
  • 支持后台自动刷新缓存。
  • 支持路径中含有特殊字符。
  • 数据储存在内存中,响应更加迅速。

安装

Github地址:https://github.com/MoeClub/OneList/tree/master/Rewrite
备用: https://github.com/huua365/OneList

1、授权认证
点击右侧URL登录并授权,授权【国际版、个人版(家庭版)】、【中国版(世纪互联)】。

授权后会获取一个localhost开头打不开的链接,这里复制好整个链接地址,包括localhost

2、安装OneList

#新建并进入OneList目录
mkdir /opt/OneList && cd $_
#64位系统下载
wget https://raw.githubusercontent.com/MoeClub/OneList/master/Rewrite/amd64/linux/OneList
#32位系统下载
wget https://raw.githubusercontent.com/MoeClub/OneList//master/Rewrite/i386/linux/OneList
#arm架构下载
wget https://raw.githubusercontent.com/MoeClub/OneList/master/Rewrite/arm/linux/OneList
#给予权限
chmod +x OneList

3、使用命令

Usage of OneList:
  -a string
        // 初始化配置文件,添加新配置
        Setup and Init auth.json.
  -bind string
        // 绑定IP地址(公网: 0.0.0.0)
        Bind Address (default "127.0.0.1")
  -port string
        // 绑定端口(HTTP:80)
        Port (default "5288")
  -s string
        // 设置 SubPath 项, 需要与 -a 一起使用.
        Set SubPath. [unique per account] (default "/")
  -c string
        // 配置文件
        Config file. (default "config.json")
  -t string
        // Index.html 目录样式文件
        Index file. (default "index.html")
  -cn
        // 开关
        // 授权中国版(世纪互联), 需要此参数.
        OneDrive by 21Vianet.
  -ms
        // 开关
        // 授权个人版(家庭版), 需要此参数.
        OneDrive by Microsoft.

4、生成配置文件

#国际版,将url换成你上面复制的授权地址,包括http://loaclhost。
./OneList -a "url" -s "/onedrive01"
#个人版(家庭版),将url换成你上面复制的授权地址,包括http://loaclhost。
./OneList -ms -a "url" -s "/onedrive02"
#中国版(世纪互联),将url换成你上面复制的授权地址,包括http://loaclhost。
./OneList -cn -a "url" -s "/onedrive03"

提示Success! Add config. '/path/to/config.json'信息,则添加成功。

这里要注意的是:

1、授权url地址只能用一次,超过需要重新授权。
2、命令中的/onedrive01参数为指定网盘地址后缀,比如http://domain.com/onedrive01。
3、授权多个网盘的话,重复授权多次即可,参数均会添加到一个配置文件,且后缀不能重复。
4、地址后缀填错了的,可以稍后在配置文件中修改。

本文默认的配置文件路径/opt/OneList/config.json,参数详解,可自行修改:

[
  {
    // 如果是家庭版或者个人免费版, 此项应为 true.
    "MSAccount": false,
    // 如果是中国版(世纪互联), 此项应为 true.
    "MainLand": false,
    // 授权令牌
    "RefreshToken": "1234564567890ABCDEF",
    // 单配置文件中,此项要唯一.将此OneDrive中设置为`RootPath`目录映射在`http://127.0.0.1:5288/onedrive` 下.
    // (只推荐一个盘位的时候使用根目录"/".)
    "SubPath": "/onedrive",
    // 读取OneDrive的某个目录作为根目录. (支持根目录"/")
    "RootPath": "/Test",
    // 隐藏OneDrive目录中的文件夹和文件, 条目间使用 "|" 分割. (跳过缓存设置的条目.)
    "HidePath": "/Test/Obj01|/Test/Obj02",
    // 使用用户名和密码加密OneDrive目录. 目录和用户名密码间使用 "?" 分割, 用户名密码使用 ":" 分割, 条目间使用 "|" 分割. 无效条目将跳过.
    "AuthPath": "/Test/Auth01?user01:pwd01|/Test/Auth02?user02:pwd02",
    // 缓存刷新间隔.(所有项目中的刷新时间取最小值为有效刷新间隔)
    "RefreshInterval": 900
  }
]

这里注意,挂载多个盘符的时候,SubPath参数请不要为/,单个网盘建议为/

5、运行OneList

#下载默认的index.html主题,与config.json同目录,即本文默认的/opt/OneList
wget https://raw.githubusercontent.com/MoeClub/OneList/master/Rewrite/index.html -P /opt/OneList
#监听8000地址,自行修改
/opt/OneList/OneList -bind 0.0.0.0 -port 8000

最后打开ip:端口访问即可,如果你挂载网盘的时候SubPath/,那么直接通过根目录查看,如果为/onedrive1,那么通过ip:端口/onedrive1查看,如果该路径不存在,则会提示No Found.

且首次运行会异步缓存,也就是至少有一个盘缓存成功了,才会显示。

6、开机自启
这里新建一个简单的systemd配置文件,适用CentOS 7Debian 8+Ubuntu 16+

使用命令:

#设置你的运行监听端口,即你可以通过ip:端口访问程序,这里默认8000。
port="8000"
#将以下代码一起复制到SSH运行
cat > /etc/systemd/system/onelist.service <<EOF
[Unit]
Description=onelist
After=network.target
[Service]
Type=simple
ExecStart=/opt/OneList/OneList -bind 0.0.0.0 -port ${port}
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
#启动并设置开机自启
systemctl start onelist
systemctl enable onelist

更换主题

提示:下载主题的index.html文件,覆盖默认index.html文件,本文默认存放/opt/OneList,然后重启程序即可

主题地址:https://github.com/MoeClub/OneList/tree/master/Rewrite/@Theme
备用:
https://github.com/huua365/OneList/tree/master/Rewrite/%40Theme

1、HaorWu

#作者
https://github.com/HaorWu
#特点
支持移动端自适应
支持当页搜索
支持按文件名, 日期, 大小排序
支持主动查看图片
支持在线播放视频
#下载地址
https://raw.githubusercontent.com/MoeClub/OneList/master/Rewrite/%40Theme/HaorWu/index.html
备用:
https://github.com/huua365/OneList/blob/master/Rewrite/%40Theme/HaorWu/index.html

2、jackjieYYY

#作者
https://github.com/jackjieYYY
https://www.hostloc.com/space-uid-38920.html
#特点
支持移动端自适应
支持当页搜索
支持按文件名, 日期, 大小排序
支持在线播放视频
#下载地址
https://raw.githubusercontent.com/MoeClub/OneList/master/Rewrite/%40Theme/jackjieYYY/index.html
备用:
https://github.com/huua365/OneList/blob/master/Rewrite/%40Theme/jackjieYYY/index.html

相关命令

启动:systemctl start onelist
停止:systemctl stop onelist
重启:systemctl restart onelist
查看状态:systemctl status onelist

卸载

#未设置开机自启
rm -rf /opt/OneList
#设置过开机自启
systemctl stop onelist
systemctl disable onelist
rm -rf /opt/OneList /etc/systemd/system/onelist.service

最后如果我们只想显示网盘的某些文件夹,那么可以分别挂载该网盘的不同目录即可,具体操作看配置文件说明。

]]>
https://blog.huua.top/2020/07/10/366.html/feed 0
Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1
Rclone 进阶使用教程 – 常用命令参数详解 https://blog.huua.top/2020/07/03/357.html https://blog.huua.top/2020/07/03/357.html#respond Fri, 03 Jul 2020 11:47:22 +0000 https://blog.huua.top/?p=357 前言

Rclone 是一个的命令行工具,支持在不同对象存储、网盘间同步、上传、下载数据。并且通过一些设置可以实现离线下载、服务器备份等非常实用的功能。本篇文章将讲解 Rclone 常用的一些命令参数。

安装 Rclone

Linux/macOS/BSD

官方提供了一键安装脚本

curl https://rclone.org/install.sh | sudo bash

Windows

直接下载

Rclone 设置

rclone config – 进入交互式配置选项,进行添加、删除、管理网盘等操作。详细操作参见:《Rclone 安装配置教程

rclone config file – 显示配置文件的路径,一般配置文件在 ~/.config/rclone/rclone.conf

rclone config show – 显示配置文件信息

命令语法

# 本地到网盘
rclone [功能选项] <本地路径> <网盘名称:路径> [参数] [参数] ...
# 网盘到本地
rclone [功能选项] <网盘名称:路径> <本地路径> [参数] [参数] ...
# 网盘到网盘
rclone [功能选项] <网盘名称:路径> <网盘名称:路径> [参数] [参数] ...

用法示例

rclone move -v /Download Onedrive:/Download --transfers=1

常用功能选项

  • rclone copy – 复制
  • rclone move – 移动,如果要在移动后删除空源目录,请加上 --delete-empty-src-dirs 参数
  • rclone sync – 同步:将源目录同步到目标目录,只更改目标目录。
  • rclone size – 查看网盘文件占用大小。
  • rclone delete – 删除路径下的文件内容。
  • rclone purge – 删除路径及其所有文件内容。
  • rclone mkdir – 创建目录。
  • rclone rmdir – 删除目录。
  • rclone rmdirs – 删除指定灵境下的空目录。如果加上 --leave-root 参数,则不会删除根目录。
  • rclone check – 检查源和目的地址数据是否匹配。
  • rclone ls – 列出指定路径下的所有的文件以及文件大小和路径。
  • rclone lsl – 比上面多一个显示上传时间。
  • rclone lsd 列出指定路径下的目录
  • rclone lsf – 列出指定路径下的目录和文件

常用参数

  • -n = --dry-run – 测试运行,用来查看 rclone 在实际运行中会进行哪些操作。
  • -P = --progress – 显示实时传输进度,500mS 刷新一次,否则默认 1 分钟刷新一次。
  • --cache-chunk-size SizeSuffi – 块的大小,默认5M,理论上是越大上传速度越快,同时占用内存也越多。如果设置得太大,可能会导致进程中断。
  • --cache-chunk-total-size SizeSuffix – 块可以在本地磁盘上占用的总大小,默认10G。
  • --transfers=N – 并行文件数,默认为4。在比较小的内存的VPS上建议调小这个参数,比如128M的小鸡上使用建议设置为1。
  • --config string – 指定配置文件路径,string为配置文件路径。
  • --ignore-errors – 跳过错误。比如 OneDrive 在传了某些特殊文件后会提示Failed to copy: failed to open source object: malwareDetected: Malware detected,这会导致后续的传输任务被终止掉,此时就可以加上这个参数跳过错误。但需要注意 RCLONE 的退出状态码不会为0

日志

rclone 有 4 个级别的日志记录,ERRORNOTICEINFO 和 DEBUG。默认情况下,rclone 将生成 ERROR 和 NOTICE 级别消息。

  • -q – rclone将仅生成 ERROR 消息。
  • -v – rclone将生成 ERRORNOTICE 和 INFO 消息,推荐此项
  • -vv – rclone 将生成 ERRORNOTICEINFO和 DEBUG 消息。
  • --log-level LEVEL – 标志控制日志级别。

输出日志到文件

使用 --log-file=FILE 选项,rclone 会将 ErrorInfo 和 Debug 消息以及标准错误重定向到 FILE,这里的 FILE 是你指定的日志文件路径。

另一种方法是使用系统的指向命令,比如:

rclone sync -v Onedrive:/DRIVEX Gdrive:/DRIVEX > "~/DRIVEX.log" 2>&1

文件过滤

--exclude – 排除文件或目录。

--include – 包含文件或目录。

--filter – 文件过滤规则,相当于上面两个选项的其它使用方式。包含规则以 + 开头,排除规则以 - 开头。

文件类型过滤

比如 --exclude "*.bak"--filter "- *.bak",排除所有 bak 文件。也可以写作。

比如 --include "*.{png,jpg}"--filter "+ *.{png,jpg}",包含所有 png 和 jpg 文件,排除其他文件。

--delete-excluded 删除排除的文件。需配合过滤参数使用,否则无效。

目录过滤

目录过滤需要在目录名称后面加上 /,否则会被当做文件进行匹配。以 / 开头只会匹配根目录(指定目录下),否则匹配所目录。这同样适用于文件。

--exclude ".git/" 排除所有目录下的.git 目录。

--exclude "/.git/" 只排除根目录下的.git 目录。

--exclude "{Video,Software}/" 排除所有目录下的 Video 和 Software 目录。

--exclude "/{Video,Software}/" 只排除根目录下的 Video 和 Software 目录。

--include "/{Video,Software}/**" 仅包含根目录下的 Video 和 Software 目录的所有内容。

文件大小过滤

默认大小单位为 kBytes ,但可以使用 k ,M 或 G 后缀。

--min-size 过滤小于指定大小的文件。比如 --min-size 50 表示不会传输小于 50k 的文件。

--max-size 过滤大于指定大小的文件。比如 --max-size 1G 表示不会传输大于 1G 的文件。

TIPS: 博主在实际使用中发现大小过滤两个选项不能同时使用。

过滤规则文件

--filter-from <规则文件> 从文件添加包含 / 排除规则。比如 --filter-from filter-file.txt

过滤规则文件示例:

- secret*.jpg
+ *.jpg
+ *.png
+ file2.avi
- /dir/Trash/**
+ /dir/**
- *

这里只举例比较常用和简单的一些过滤用法,更复杂和高端的用法可以查看官方文档

环境变量

rclone 中的每个选项都可以通过环境变量设置。环境变量的名称可以通过长选项名称进行转换,删除 -- 前缀,更改 - 为_,大写并添加前缀 RCLONE_。环境变量的优先级会低于命令行选项,即通过命令行追加相应的选项时会覆盖环境变量设定的值。

比如设置最小上传大小 --min-size 50,使用环境变量是 RCLONE_MIN_SIZE=50。当环境变量设置后,在命令行中使用 --min-size 100,那么此时环境变量的值就会被覆盖。

常用环境变量

  • RCLONE_CONFIG – 自定义配置文件路径
  • RCLONE_CONFIG_PASS – 若 rclone 进行了加密设置,把此环境变量设置为密码,可自动解密配置文件。
  • RCLONE_RETRIES – 上传失败重试次数,默认 3 次
  • RCLONE_RETRIES_SLEEP – 上传失败重试等待时间,默认禁用,单位smh分别代表秒、分钟、小时。
  • CLONE_TRANSFERS – 并行上传文件数。
  • RCLONE_CACHE_CHUNK_SIZE – 块的大小,默认5M,理论上是越大上传速度越快,同时占用内存也越多。如果设置得太大,可能会导致进程中断。
  • RCLONE_CACHE_CHUNK_TOTAL_SIZE – 块可以在本地磁盘上占用的总大小,默认10G。
  • RCLONE_IGNORE_ERRORS=true – 跳过错误。

参考资料

Rclone 官方文档

]]>
https://blog.huua.top/2020/07/03/357.html/feed 0
Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1
Rclone 安装配置教程 – 连接 OneDrive 和 Google Drive https://blog.huua.top/2020/07/03/355.html https://blog.huua.top/2020/07/03/355.html#comments Fri, 03 Jul 2020 11:45:53 +0000 https://blog.huua.top/?p=355 前言

Rclone 是一个的命令行工具,支持在不同对象存储、网盘间同步、上传、下载数据。并且通过一些设置可以实现离线下载、服务器备份等非常实用的功能。这里以 OneDrive 和 Google Drive 为例子,进行连接配置,其它网盘的操作类似。由于是交互式配置选项,只要能看懂基本没有任何难度。

安装 Rclone

官方提供了一键安装脚本

curl https://rclone.org/install.sh | sudo bash

Rclone 连接 OneDrive

获取 token

在本地 Win­dows 电脑上下载 rclone,然后解压出来,解压后进入文件夹,在资源管理器地址栏输入 cmd,回车就会在当前路径打开命令提示符。输入以下命令:

rclone authorize "onedrive"

接下来会弹出浏览器,要求你登录账号进行授权。授权完后命令提示符窗口会出现以下信息:

If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
Got code
Paste the following into your remote machine --->
{"access_token":"xxxxxxxx"}  # 注意!复制{xxxxxxxx}整个内容,并保存好,后面需要用到
<---End paste

配置 Rclone

输入 rclone config 命令,会出现以下信息,参照下面的注释进行操作。点击查看

Rclone 连接 Google Drive

与 OneDrive 不同的是,Google Drive 不需要本地 Win­dows 客户端预先进行授权获取 to­ken,而是在配置过程中进行授权。

输入 rclone config 命令,会出现以下信息,参照下面的注释进行操作。点击查看

使用教程

配置完成后你可以去看 Rclone 相关使用教程 来了解 Rclone 更多进阶使用技巧。

]]>
https://blog.huua.top/2020/07/03/355.html/feed 2
Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1
Rclone 使用教程 – 挂载 OneDrive、Google Drive 等网盘(Linux) https://blog.huua.top/2020/07/03/354.html https://blog.huua.top/2020/07/03/354.html#comments Fri, 03 Jul 2020 11:45:25 +0000 https://blog.huua.top/?p=354 前言

Rclone 是一个的命令行工具,支持在不同对象存储、网盘间同步、上传、下载数据。并且通过一些设置可以实现离线下载、服务器备份等非常实用的功能。Rclone 有很多种使用方式,挂载是其中的一种。

友情提示: 挂载这个操作并不是必须的,作为一个实验性功能它有很多局限性和问题。挂载后并不能当做一个真正的磁盘来使用,在进行文件操作时会使用本地磁盘进行缓存,即占用本地磁盘空间。使用不当还可能造成磁盘写满、VPS卡死等问题。在 Google 上搜索“Rclone”,与之相关的最多的关键词就是“挂载”,这在一定程度上对很多刚接触的小伙伴造成了误导。要稳定的进行上传、下载、同步等操作建议使用 Rclone 的原生命令功能,使用方法参见《Rclone 进阶使用教程 – 常用命令参数》。

安装和配置 Rclone

官方提供了一键安装脚本

curl https://rclone.org/install.sh | sudo bash

安装完后,输入 rclone config 命令进入交互式配置选项,按照提示一步一步来进行操作即可。如果你一脸懵逼,可以去看《Rclone 安装配置教程》来了解配置的详细过程。

安装 fuse

挂载需要安装 fuse,根据自己的系统来选择安装命令:

# Debian/Ubantu
apt-get update && apt-get install -y fuse
# CentOS
yum install -y fuse

挂载网盘

挂载网盘分为手动挂载和开机自动挂载,根据自己的需求来选择。

手动挂载

#挂载
rclone mount <网盘名称:网盘路径> <本地路径> [参数] --daemon
#取消挂载
fusermount -qzu <本地路径>

网盘名称为配置时填的 name网盘路径为网盘里的文件夹,留空为整个网盘,本地路径为 VPS 上的本地文件夹。参数可以查看官方文档根据需求进行选择。实际输入时不要有括号,这里只是为了更清楚的区分。--daemon 为进程守护参数,可后台运行。

使用示例

输入命令进行挂载操作:

rclone mount Onedrive:/ /Onedrive --copy-links --allow-other --allow-non-empty --umask 000 --daemon

然后输入 df -h 命令查看挂载情况。

root@P3TERX:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            286M     0  286M   0% /dev
tmpfs            60M  7.8M   52M  14% /run
/dev/sda1        99G   25G   71G  26% /
tmpfs           297M   24K  297M   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           297M     0  297M   0% /sys/fs/cgroup
Onedrive:       5.0T  216G  4.8T   5% /Onedrive #这个就是挂载的网盘

取消挂载:

fusermount -qzu /Onedrive

开机自动挂载

  • 下载并编辑自启脚本
wget -N git.io/rcloned && nano rcloned
  • 修改内容:
NAME="Onedrive" #Rclone配置时填写的name
REMOTE=''  #远程文件夹,网盘里的挂载的一个文件夹,留空为整个网盘
LOCAL='/Onedrive'  #挂载地址,VPS本地挂载目录
  • 设置开机自启
mv rcloned /etc/init.d/rcloned
chmod +x /etc/init.d/rcloned
update-rc.d -f rcloned defaults # Debian/Ubuntu
chkconfig rcloned on # CentOS
bash /etc/init.d/rcloned start

看到 [信息] rclone 启动成功 ! 即可。

管理

开始挂载 bash /etc/init.d/rcloned start

停止挂载 bash /etc/init.d/rcloned stop

重新挂载 bash /etc/init.d/rcloned restart

查看日志 tail -f /$HOME/.rclone/rcloned.log

卸载自启挂载

bash /etc/init.d/rcloned stop
update-rc.d -f rcloned remove # Debian/Ubuntu
chkconfig rcloned off # CentOS
rm -f /etc/init.d/rcloned
]]>
https://blog.huua.top/2020/07/03/354.html/feed 1
Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1
Rclone 进阶使用教程 – 自建私有 API 挂载 OneDrive https://blog.huua.top/2020/07/03/347.html https://blog.huua.top/2020/07/03/347.html#respond Fri, 03 Jul 2020 10:19:57 +0000 https://blog.huua.top/?p=347 前言

使用 Rclone 给 OneDrive 传输文件时可能会遇到速度非常慢、断联等一些问题,其根源是 OneDrive 使用 Rclone 自带 API 会有一些限制,毕竟是很多人都在共用一个 API 接口。使用自建的私有 API 连接 OneDrive 可大幅改善这些情况,而且对于三个月的 Of­fice 365 E5 开发者试用版,平时偶尔用用 Rclone 还会有自动续订的可能性,比起刻意刷 API 的方式更为安全和稳定。此外自建的 API 还可以给其它的账号和其它应用使用。

速度测试

前者为使用 Rclone 自带 API ,后者为自建 API ,可以很明显的看出速度相差了 10 多倍。

20200223155110.png插图
20200223155111.png插图(1)

创建 OneDrive API

获取 Client ID

20200222200856.png插图(2)
  • 名称随意,账户类型选择最后一个,重定向 URL 填写http://localhost
20200222200858.png插图(3)
  • 创建成功后你会看到 Client ID(客户端 ID),复制并保存好。
20200222200857.png插图(4)

获取 Client secret

  • 点击证书和密码,按照图中序号的顺序操作添加密码。
20200222200859.png插图(5)
  • 然后你会看到 Client secret(客户端密码),复制并保存好。
20200222200900.png插图(6)

设置 API 权限

  • 点击API 权限,按照图示进行操作,添加Files.ReadFiles.ReadWriteFiles.Read.AllFiles.ReadWrite.Alloffline_accessUser.Read这些权限。
20200223145533.png插图(7)
  • 最后确认下权限是否添加完整。
20200223145532.png插图(8)

获取 token

  • 在本地电脑上下载 rclone
  • 以 Windows 为例子,解压并进入rclone.exe所在文件夹,在资源管理器地址栏输入cmd,回车就会在当前路径打开命令提示符。
  • 替换以下命令中的Client_IDClient_secret并执行。
rclone authorize "onedrive" "Client_ID" "Client_secret"

接下来会弹出浏览器,要求你登录账号进行授权。授权完后命令提示符窗口会出现以下信息:

If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
Got code
Paste the following into your remote machine --->
{"access_token":"xxxxxxxxxxxxxxxxxx","expiry":"2020-02-22T21:18:39.5036298+08:00"}
<---End paste

{"access_token":"xxxxxxxxxxxxxxxxxx","expiry":"2020-02-22T21:18:39.5036298+08:00"} 整个内容(包含括号)就是 to­ken ,复制并保存好。

Rclone 连接 OneDrive

输入 rclone config 命令,会出现以下信息,参照下面的注释进行操作。点击查看

挂载 OneDrive

如果你需要挂载到本地目录,可以参考博主之前写的挂载教程,这里就不再赘述了。

关于 Office 365 E5 自动续订

根据一些大佬几年的开发者试用版使用经验来看,只要你使用自建的私有 API 就可能续订,至于频率并没有一个标准,也并不是越多越好。刻意刷 API 可能得不偿失,尤其是使用 GitHub Ac­tions ,毕竟微软也不傻,那么多人以相似的方式刷 API 是非常容易识别的。

]]>
https://blog.huua.top/2020/07/03/347.html/feed 0
Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1
Onedrive使用 Oneindex 网盘程序,达到直链分享,在线视频的目的 https://blog.huua.top/2020/06/27/416.html https://blog.huua.top/2020/06/27/416.html#respond Sat, 27 Jun 2020 14:51:32 +0000 https://blog.huua.top/?p=324 使用 Oneindex 搭建一个不限流量网盘

简介

OneIndex是一个可以将OneDrive网盘的目录索引出来的程序,可以供多人查看/下载,也就是变成了公共的网盘。而且不占用服务器空间,也不消耗服务器流量,很强大。

截图

请输入图片描述

特点

  • 响应式,支持小屏设备。
  • 图片在线预览。
  • 视频在线播放。
  • 代码在线查看(jscsshtmlshphpjavamd等)。
  • README.md支持,解析各目录下(onedirive目录下) README.md文件,在页面尾部展示。
  • 音频在线播放。
  • HEAD.md支持,在页面头部展示。
  • .password文件夹加密。

更新

OneIndex 3.0更新内容:

1、接口转为使用graph接口,支持个人账号
2、不在集成secret,请按照安装流程进行获取
3、增加管理后台(地址?/admin  初始密码:oneindex)
4、不同后缀文件展示方式自定义
5、<5M 文件,可以自定义直接输出(可解决跨域调用,比如字幕等问题)
6、cli文件夹上传(单线程)
7、后台文件夹上传(多线程)
8、图床(OneImages),还比较简陋。
9、新增 index.html 特性,如果目录下存在index.html 直接输出index.html而不列目录

需求

  • PHP空间,PHP 5.6+ 打开curl支持。
  • Onedrive账号 (个人、企业版或教育版/工作或学校帐户)。
  • oneindex程序:天翼云盘

安装

1、上传oneindex程序到根目录,设置config/、config/base.php、 cache/可读写权限。
2、浏览器访问、绑定账号
3、可以使用

更多使用方法查看Githubhttps://github.com/donwa/oneindex(作者已下架)

Nginx伪静态设置:

if (!-f $request_filename){
    set $rule_0 1$rule_0;
}
if (!-d $request_filename){
    set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
    rewrite ^(/.*)$ /?/$1 last;
}
]]>
https://blog.huua.top/2020/06/27/416.html/feed 0
Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1
网盘程序:Zflie、简洁直观的在线文件目录程序,支持各种对象存储和本地存储,包括Onedrive和世纪互联 https://blog.huua.top/2020/06/27/317.html https://blog.huua.top/2020/06/27/317.html#respond Sat, 27 Jun 2020 14:49:53 +0000 https://blog.huua.top/?p=317 image-1-1024x630.png插图

此项目是一个在线文件目录的程序, 支持各种对象存储和本地存储, 使用定位是个人放常用工具下载, 或做公共的文件库. 不会向多账户方向开发.

前端基于 h5ai 的原有功能使用 Vue 重新开发了一遍. 后端采用 SpringBoot, 数据库采用内嵌数据库.

DEMO预览地址: https://zfile.jun6.net

系统特色

  • 内存缓存 (免安装)
  • 内存数据库 (免安装)
  • 个性化配置
  • 自定义目录的 readme 说明文件
  • 自定义 JS, CSS
  • 文件夹密码
  • 支持在线浏览文本文件, 视频, 图片, 音乐. (支持 FLV 和 HLS)
  • 文件/目录二维码
  • 缓存动态开启, 缓存自动刷新 (v2.2 及以前版本支持)
  • 全局搜索 (v2.2 及以前版本支持)   后继更新
  • 同时挂载多个存储策略
  • 支持 阿里云 OSS, FTP, 华为云 OBS, 本地存储, MINIO, OneDrive 国际/家庭/个人版, OneDrive 世纪互联版, 七牛云 KODO, 腾讯云 COS, 又拍云 USS.

安装教程:

Zfile支持Linux和windows两种版本,请根据自己系统来选择下列安装方法:

Linux

此处的命令中都默认安装到用户目录下: ~

对于 root 用户, 在 /root/ 路径下, 对于其他用户, 在 /home/用户名/ 路径下。

如需更改安装路径, 请自行修改。

安装依赖

如为更新程序, 则可跳过此步骤, 但要执行命令, 停止服务并清理上个版本的程序: ~/zfile/bin/stop.sh && rm -rf ~/zfile (不会删除数据文件)

# CentOS系统
yum install -y java-1.8.0-openjdk unzip
# Debian/Ubuntu系统
apt update
apt install -y openjdk-8-jre-headless unzip

下载项目

wget -P ~ https://c.jun6.net/ZFILE/zfile-release.war
cd ~
mkdir zfile && unzip zfile-release.war -d zfile && rm -rf zfile-release.war
chmod +x ~/zfile/bin/*.sh

常用命令

 ~/zfile/bin/start.sh       # 启动项目
 ~/zfile/bin/stop.sh        # 停止项目
 ~/zfile/bin/restart.sh     # 重启项目

Windows

安装依赖

安装 JDK8, 并配置环境变量, 可参考: https://jingyan.baidu.com/article/ce09321b85e8d62bff858f93.html

下载项目

下载文件 https://c.jun6.net/ZFILE/zfile-release.jar

启动项目

然后在文件所在路径下, 使用 cmd 执行命令 (不支持 powershell):

java -Dfile.encoding=utf-8 -jar -Dserver.port=8080 .\zfile-release.jar

如需要修改配置文件, 可去 Github 复制一份配置文件, 放到 jar 文件同路径即可.

功能介绍:

密码文件夹

在需要密码访问的文件夹,添加 password.txt,文件内容为文件夹密码,如为中文密码,请保证文件为 UTF8 编码。

此文件不会显示,但无法防止被下载,可指定密码文件名,在配置文件 application。yml 中 zfile -> conconstant -> password 修改。

文档区

在需要添加文档的文件夹,添加 readme。txt,文件内容为文件夹密码,如包含中文,请保证文件为 UTF8 编码。

此文件不会显示,可指定文档文件名,在配置文件 application。yml 中 zfile -> conconstant -> readme 修改。

自定义 CSS JS

在对应的框内,写 CSS、JS 代码即可,无需写 <style> 或 script 标签。

缓存功能

开启缓存后,会缓存文件夹中的内容,可以加快访问速度,但同样也可能会导致数据不一致。缓存每 30 分钟刷新一次。

搜索功能

可全局搜索整个存储引擎中的内容。

搜索功能,需开启缓存后,才可生效。

搜索包含加密文件

如关闭此选项,如文件夹中需要密码访问,则此文件夹及其子文件夹中的内容,不会出现在搜索结果中。

忽略大小写

搜索忽略大小写。

OneDrive 令牌

OneDrive 令牌,会在以下情况下自动刷新:

  1. 项目启动 30 秒后,每 15 分钟自动刷新一次 (令牌有效期为 1 小时)。
  2. 保存存储策略时
  3. 切换到 OneDrive 策略时

常见问题:

如何更改端口

vim ~/zfile/WEB-INF/classes/application.yml
server:
    port: 8080      # 修改此处.

默认启动端口为 8080, 如需请配置文件请编辑上述文件, 修改后重启程序生效.

为什么启动后无法访问

可能是防火墙没开启. 下面介绍如何防火墙开启端口. 对于阿里云、腾讯云、谷歌云等厂商, 可能还需要额外去后台开启防火墙.

CentOS 7.x

firewall-cmd --zone=public --add-port=8080/tcp --permanent # 开放 8080 端口
firewall-cmd --reload                                      # 重启firewall

Ubuntu 16.x / Debian 9.x

iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
iptables-save
sudo apt-get install iptables-persistent
sudo netfilter-persistent save
sudo netfilter-persistent reload

宝塔面板

宝塔面板可以去后台开放端口:

image-2-1024x242.png插图(1)

如何使用域名进行访问

方式1: 将域名 A 记录解析到服务器 IP, 即可通过 域名:端口 访问 (80 端口即可免输入端口).

方式2: 使用 nginx 或 caddy 等工具反向代理. 以下以宝塔面板为例:

首先点击 网站 -> 新增站点:

image-3-1024x851.png插图(2)

点击反向代理:

image-4-1024x914.png插图(3)

设置反向代理:

image-5-1024x672.png插图(4)

为什么提示密码错误

  1. 请检查密码文件中是否包含中文,如果包含,请保持文件编码为 UTF8。
  2. 请检查密码文件中是否包含空格, 换行符等不可见字符.

前后端分离如何部署

下载 https://github.com/zhaojun1998/zfile/tree/master/src/main/resources/static 路径下的所有文件, 或在程序运行后的相对路径:WEB-INF/classes/static.

修改 zfile.config.json 内文件指向后端地址, 然后放到静态资源服务器, 或对象存储即可:

{
  "baseUrl": "http://xx.xxx.cn:8080"
}

]]>
https://blog.huua.top/2020/06/27/317.html/feed 0
Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1
教你如何免费获得多个 5000G容量大网盘 https://blog.huua.top/2020/06/27/314.html https://blog.huua.top/2020/06/27/314.html#respond Sat, 27 Jun 2020 14:38:14 +0000 https://blog.huua.top/?p=314 image-1024x538.png插图

Office 365 开发版 E5 是为开发人员提供的微软官方活动,申请Office 365开发者计划,可以获得为期3个月的免费Office 365 E5。只要90天内需要证明是开发者理论上无限期续订。
Office 365 开发版 E5最大可以支持25个订阅者,每一个订阅者都可以获得5T的OneDrive网盘。(后期还可以扩展到25T)

准备:

一个微软账号,如果没有,点击下面,注册outlook邮箱就可以了。https://outlook.live.com/owa/
账号格式:xxx@outlook.com 或者 xxx @hotmail.com

申请教程

1. 首先进入【Office开发人员中心】https://developer.microsoft.com/zh-cn/office  登录你的微软帐号之后,点击立即加入
2. 开通Office开发者账号,并且完善个人信息;
3. 进入个人中心,点击设置订阅;
4. 填写设置开发者订阅相关的信息;
5. 设置手机号验证(需要代理);
6. 验证成功后,自动开始设置订阅;
管理地址
控制台管理地址:https://portal.office.com/AdminPortal/Home
在这里登录以后可以查看订阅,进行管理用户等功能!

1T扩招到5T的教程

如果是容量是1T,先不要增加订阅者,
方法1、登陆https://admin.onedrive.com/?v=StorageSettings 修改为 5120GB
方法2.使用 PowerShell 设置 OneDrive 存储空间
下载 SharePoint Online Management Shell 并安装
https://www.microsoft.com/zh-cn/download/details.aspx?id=35588
运行代码检测安装是否成功
Get-Module -Name Microsoft.Online.SharePoint.PowerShell -ListAvailable | Select Name,Version
使用管理员用户名和密码连接,运行如下代码:
$adminUPN=”vpswp@vpswp.onmicrosoft.com
$orgName=”vpswp”
$userCredential = Get-Credential -UserName $adminUPN -Message “Type the password.”
Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential
# adminUPN 是管理员邮箱,orgName 是你设置的组织名,将其替换即可
5、然后会弹出一个窗口,会要求帐号的密码
6、运行以下命令,对用户进行升级扩容:
Set-SPOSite -Identity <user’s OneDrive URL> -StorageQuota
# <user’s OneDrive URL> 更改为你要扩容的用户URL
# 是储存空间值,以MB为单位(5242880MB=5TB)#
Set-SPOSite -Identity https://vpswp-my.sharepoint.com/personal/vpswp_vpswp_onmicrosoft_com -StorageQuota 5242880
注意:上面几个标记的要改为你自己的,红色的为你的用户名,蓝色为组织名。

如何登陆使用:

1.网页
https://login.microsoftonline.com/
2.本地客户端
https://www.onedrive.com/download  (如果该页面无法打开,建议直接在百度上下载onedrive应用)

]]>
https://blog.huua.top/2020/06/27/314.html/feed 0
Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1
关于OneDrive 5T账号的一些问题 https://blog.huua.top/2020/06/27/311.html https://blog.huua.top/2020/06/27/311.html#respond Sat, 27 Jun 2020 14:00:07 +0000 https://blog.huua.top/?p=311 子账号:A1、A1 Plus、E3三种许可,A1不可以激活Office​,其他款都可以激活五台PC或Mac的Office365​。​

如果说最稳定的话,我推荐买国外教育邮箱(国内邮箱没有365激活,国外有),然后自己去申请OneDrive 1T+365虽然只有1T但是这样子的账号你的邮箱被封了OneDrive也可以一直使用!

A1是所有账号里最没有波澜的,因为不能激活Office,微软懒得管。

A1 Plus许可的子账号有两种:第一种是之前无限账号全局开出来的,这样的稳定了有好几年,到后来大家都说永久,19年十月一微软说要封禁,可是到现在还一直可以用!;第二种1W许可的全局开出来的,市面存在了1年没有被封的例子,因为这个许可的数量相比之前无限对微软的影响小,现在所出售的也都是1W许可的全局开出来的,所以还是相对来说稳定的。

全局:

A1 Plus(无法新开、有库存出售):1w用户每用户5T可激活office(Unlimited用户已绝版,风险高,市面无出售)1W用户的目前没有见过全局被封的例子。不易翻车,理论永久,是唯一一个官方订阅写了永久的全局。

A1:1w用户每用户5T( Unlimited用户已绝版、有库存出售 )不易翻车,理论永久。

E3 MSDN:25用户每用户5T可激活Office,不易翻车,不翻车就是永久。

E3 Symphony(微软客服都不敢承认的东西,原本用于公益机构的免费使用,现在基本被撸废了): 1~350w, 用户每用户5T可激活office不推荐使用,易翻车,但是如果不翻车就是永久。

关于管理可查子用户文件的声明:

我只想说请相信我我真的永远不会查你们文件的、我的时间我还是留给我自己做些更有意义的事情。
如果有个别需要,或者仍然存在信任问题,这个都理解,请入无管理款的号(edu邮箱版)或者干脆来一个全局管理员。右上角店铺有卖哦~

常见问题:

A 更换同步目录:客户端设置中先取消链接此电脑,然后重新登录,请注意登陆过程中有一步会让修改同步文件夹。
B 查看容量:方法1、电脑版客户端设置里;方法二:挂载工具(例如Raidrive)查看。方法三:OneDrive网页版设置里。
C Raidrive可以挂载本地盘,请不要间断上穿,否则文件会变成双倍大小。5T变2.5T
D 最近拍下的用户,请检查自己的 one drive账户容量是否为5T,现在出现了个别用户为1T的情况,如有及时反馈给我,以便修改为5T。
E 据说有个装了5T的片,一直用自带链接分享给挂了。虽然咱们的服务器不归世纪互联,不受国内管束。但被举报多了也会GG;为避免影响到整个全局。建议存片的改用oneindex分享。

百度云与onedrive区别:

百度属于共享空间,你的2T空间只不过是个虚标而已,而onedrive是微软真正在服务器端给你分出来一块儿地方,所以不支持秒传,已经存在的文件目前没有办法从官方渠道瞬间转移。新文件想同时在两个盘中同步可以参考OneDrive电脑网页版里的flow。

Google云端硬盘与OneDrive区别:

都为单独空间。谷歌支持跨全局转存,微软只可以在同一个全局内进行转存,后期会写文章欢迎关注。谷歌由于在墙外,需要爬墙出去才可以访问,所以本来的不限速变成了看爬墙的速度了。

]]>
https://blog.huua.top/2020/06/27/311.html/feed 0
Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1

Warning: chmod(): No such file or directory in /www/wwwroot/huua.top/wp-includes/plugin.php(446) : runtime-created function on line 1