Rat's

Aria2+Aria2Ng+OneIndex一键安装脚本,下载后自动上传至OneDrive
说明:博主之前发了很多网盘离线教程了,包括一些脚本,查看:Aria2+Rclone+DirectoryLister...
扫描右侧二维码阅读全文
09
2018/08

Aria2+Aria2Ng+OneIndex一键安装脚本,下载后自动上传至OneDrive

说明:博主之前发了很多网盘离线教程了,包括一些脚本,查看:Aria2+Rclone+DirectoryLister+Aria2Ng一键安装脚本,差不多都是配合Google Drive网盘的,不过OneDrive的也有,但都不是很理想,现在感觉OneIndex挺不错的,配合OneDrive可以实现观看/下载不走VPS流量的离线BT网盘,这里就整了个一键脚本,将以往需要的2个域名变成了1个,且下载文件自动上传到OneIndex/OneDrive指定文件夹,并删除本地文件,使其不占VPS空间,添加并自动更新Trackers服务器,有兴趣的可以玩玩。

截图

请输入图片描述
请输入图片描述

更新

【2018.12.30】
修复重定向次数过多的问题,现已修复(这个抱歉,忘记在脚本里注释部分$,导致出了点小问题)。
【2018.12.22】
替换伪静态规则,调整缓存刷新时间
【2018.12.21】
修复一点小问题,并增加定时刷新缓存和token,优化定时任务步骤,最后不再显示定时任务编辑界面。

安装

系统要求:脚本只适用于Debian 89,且无网站环境,会自动签发Let's Encrypt SSL证书,请提前将域名解析至VPS服务器。

运行命令:

wget https://www.moerats.com/usr/shell/Aria2_OneIndex.sh && bash Aria2_OneIndex.sh

按要求输入以下选项:

请输入你的OneIndex域名信息(如:oneindex.moerats.com):
请输入你的Aria2密钥:
请输入你OneIndex/OneDrive中的一个文件夹(格式:RATS,此后所有文件都会上传到该文件夹):

输入好了后直到安装完成,如果Nginx安装失败,检查下系统是否自带Apache2,然后卸载掉就行了。Aria2Ng访问地址:http://IP:8080OneIndex后台地址:https://xx.com/?/admin,默认密码:oneindex

提示:这里好几个同学反映进不去后台,博主看了下原因,顺便再说下,安装好了后,需要先访问自己的域名,然后绑定OneDrive账号了才能访问后台,不然是进不去后台的!

绑定OneDrive后建议先访问后台,如果前台出现HTTP ERROR 500的情况,可以重新下载源码后再绑定账号,使用命令:

#将domain.com改成你的域名再运行以下命令
cd /home/wwwroot/domain.com
rm -rf ./*
git clone https://github.com/donwa/oneindex.git
mv oneindex/* ./
chmod -R 777 config/ cache/

相关文件

OneIndex及域名根目录:/home/wwwroot/xx.com
Aria2Ng根目录:/home/wwwroot/aria2ng
域名证书目录:/home/wwwroot/ssl
Aria2配置文件夹:/root/.aria2
Aria2下载目录:/root/Download

相关提示

如果想使用手动安装的,参考:使用Aria2+Aria2Ng+OneIndex+OneDrive建立不限流量/离线BT下载/在线观看网盘。关于OneIndex更详细的介绍和使用方法,包括OneDrive 5T网盘的获取可以查看:OneIndex一键安装脚本 for Debian。由于OneIndex自身原因,上传可能存在些BUG,会导致有的文件上传失败,不过博主测试了下,大多数都可以上传,不怎么影响使用。最后如果你是免费申请的OneDrive 5T网盘或者花的几块钱买的,建议别放重要资料,玩玩就行了。

关于上传

由于程序BUG影响,上传存在问题,如果你想追求完美,可以使用博主近期发的OneDrive for Business上传脚本,具体可以参考:VPS上传文件到OneDrive网盘脚本,可配合Aria2实现自动上传,本一键脚本的Aria2上传脚本路径为:/root/.aria2/OneIndexupload.sh,根据实际需求修改。

Vultr新用户注册送100美元/16个机房按小时计费,支持支付宝,【点击查看】。
最后修改:2018 年 12 月 30 日 03 : 14 PM

发表评论

380 条评论

  1. huge

    遇到的问题提供解决思路哈:
    本人Debian10系统
    1.证书解决办法------先执行指令:curl https://get.acme.sh | sh -s email=你的邮箱,后接下来ssl签发很顺利
    2.php7.0解决办法:
    方法一: 该方法是使用第三方源添加
    一、安装依赖
    apt install apt-transport-https lsb-release ca-certificates #### lsb-release可以不用安装,主要是人家用命令安装,懒得输入,所以安装
    二、安装证书
    wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
    或者
    curl https://packages.sury.org/php/apt.gpg | apt-key add -
    三、添加源
    echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
    方法二:请谷歌

  2. 1

    fatal: 目标路径 'Oneindex' 已经存在,并且不是一个空目录。
    chmod: 无法访问'config/': 没有那个文件或目录
    chmod: 无法访问'cache/': 没有那个文件或目录
    [Error] OneIndex 下载失败

  3. xiaoruan

    https://i.loli.net/2020/04/29/ofGEIFinx3gt9SW.png
    这是错误提示的截图。

    1. Rat's
      @xiaoruan

      更新好了,你再试试,换了删库前最后一个版本

  4. xiaoruan

    oneindex下载失败了,是否和原作者删库有关?能更新新的下载地址吗

  5. 小夫

    脚本安装和运行都正常,oneindex账号绑定也没问题,ariang也能进去,下载也正常。但是下载完的视频没有自动上传到我的onedrive中,oneindex中也没有看到上传任务,我手动上传aria2的下载文件夹提示文件不存在,请问是哪里出现了问题呢?

    1. Rat's
      @小夫

      看下/root/.aria2里面的日志文件aria2.log,看下上传那里的日志。

  6. 顾盼

    大佬你知道为什么搭建的ariang不能下载磁力链接吗,迅雷可以下载,

  7. pitt

    怎么在下载完成后同时上传到google drive呢?

    1. Rat's
      @pitt

      这个需要修改上传脚本,默认好像在/root/.aria2文件夹,具体网络,你可以找找,然后挂载googledrive,再修改上传命令啥的,上传onedrive下面模仿下,写个google的,差不多就这样。

  8. pitt

    如果想要同时上传到google drive,需要怎么修改配置文件的参数呢?

  9. 空山雨后

    老哥,为什么ariang进去就显示认证失败怎么办~

    1. Rat's
      @空山雨后

      密匙没填吗?需要先设置下

  10. lzbzz

    Aria2_OneIndex.sh: line 185: /root/.acme.sh/acme.sh: No such file or directory
    [Error] SSL 证书生成失败
    防火墙开了

    1. Rat's
      @lzbzz

      什么系统?国内的服务器么?我刚刚用vultr的debian 9试了下,好像没这个问题,估计是curl https://get.acme.sh | sh这一步出了问题

      1. lzbzz
        @Rat's

        henzter的德国服务器,但是手动执行curl https://get.acme.sh | sh还是error

        1. Rat's
          @lzbzz

          把手动执行这个命令到结束的日志发我看看

          1. lzbzz
            @Rat's

            防火墙关着

          2. lzbzz
            @Rat's

            防火墙开了

          3. lzbzz
            @Rat's

            Linux oranme430 5.3.13-1-pve #1 SMP PVE 5.3.13-1 (Thu, 05 Dec 201
            9 07:18:14 +0100) x86_64

            The programs included with the Debian GNU/Linux system are free s
            oftware;
            the exact distribution terms for each program are described in th
            e
            individual files in /usr/share/doc/*/copyright.

            Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
            permitted by applicable law.
            root@oranme430:~# wget https://www.moerats.com/usr/shell/Aria2_OneIndex.sh && bash Aria2_OneIndex.sh
            --2020-02-23 04:00:14-- https://www.moerats.com/usr/shell/Aria2_OneIndex.sh
            Resolving www.moerats.com (www.moerats.com)... 172.83.156.172
            Connecting to www.moerats.com (www.moerats.com)|172.83.156.172|:443... connected.
            HTTP request sent, awaiting response... 200 OK
            Length: 11761 (11K) [application/octet-stream]
            Saving to: 'Aria2_OneIndex.sh'

            Aria2_OneIndex.sh 100%[==========>] 11.49K --.-KB/s in 0s

            2020-02-23 04:00:15 (202 MB/s) - 'Aria2_OneIndex.sh' saved [11761/11761]

            [OK] 当前系统为 Debian 9
            [OK] 当前用户是root用户,进入安装流程
            Get:1 http://security.debian.org stretch/updates InRelease [94.3 kB]
            Ign:2 http://ftp.debian.org/debian stretch InRelease
            Get:3 http://ftp.debian.org/debian stretch-updates InRelease [91.0 kB]
            Get:4 http://ftp.debian.org/debian stretch Release [118 kB]
            Get:5 http://ftp.debian.org/debian stretch Release.gpg [2410 B]
            Get:6 http://security.debian.org stretch/updates/main amd64 Packages [520 kB]
            Get:7 http://security.debian.org stretch/updates/main Translation-en [230 kB]
            Get:8 http://security.debian.org stretch/updates/contrib amd64 Packages [1760 B]
            Get:9 http://security.debian.org stretch/updates/contrib Translation-en [1759 B]
            Get:10 http://ftp.debian.org/debian stretch-updates/main amd64 Packages.diff/Index [12.5 kB]
            Get:11 http://ftp.debian.org/debian stretch-updates/main Translation-en [11.9 kB]
            Get:12 http://ftp.debian.org/debian stretch-updates/main amd64 Packages [27.9 kB]
            Get:13 http://ftp.debian.org/debian stretch/main amd64 Packages [7083 kB]
            Get:14 http://ftp.debian.org/debian stretch/main Translation-en [5381 kB]
            Get:15 http://ftp.debian.org/debian stretch/contrib amd64 Packages [50.9 kB]
            Get:16 http://ftp.debian.org/debian stretch/contrib Translation-en [45.9 kB]
            Fetched 13.7 MB in 16s (821 kB/s)
            Reading package lists... Done
            Building dependency tree... Done
            71 packages can be upgraded. Run 'apt list --upgradable' to see them.Reading package lists... Done
            Building dependency tree... Done
            The following additional packages will be installed:
            Unpacking libcurl3:amd64 (7.52.1-5+deb9u9) ... Selecting previously unselected package curl. Preparing to unpack .../3-curl_7.52.1-5+deb9u9_amd64.deb ... Unpacking curl (7.52.1-5+deb9u9) ... Selecting previously unselected package net-tools. Preparing to unpack .../4-net-tools_1.60+git20161116.90da8a0-1_amd64.deb ... Unpacking net-tools (1.60+git20161116.90da8a0-1) ... Selecting previously unselected package sudo. Preparing to unpack .../5-sudo_1.8.19p1-2.1+deb9u2_amd64.deb ... Unpacking sudo (1.8.19p1-2.1+deb9u2) ... Selecting previously unselected package unzip. Preparing to unpack .../6-unzip_6.0-21+deb9u2_amd64.deb ... Unpacking unzip (6.0-21+deb9u2) ... Processing triggers for mime-support (3.60) ... Setting up sudo (1.8.19p1-2.1+deb9u2) ... Setting up libcurl3:amd64 (7.52.1-5+deb9u9) ... Setting up unzip (6.0-21+deb9u2) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... Processing triggers for systemd (232-25+deb9u8) ... Setting up wget (1.18-5+deb9u3) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up bc (1.06.95-9+b3) ... Setting up net-tools (1.60+git20161116.90da8a0-1) ... Setting up curl (7.52.1-5+deb9u9) ... 请 输 入 你 的 OneIndex域 名 信 息 (如 :oneindex.moerats.com):one.nshfwz.info 请 输 入 你 的 Aria2密 钥 :AriaNG 请 输 入 你 OneIndex/OneDrive中 的 一 个 文 件 夹 ( 格 式 :RATS, 此 后 所 有 文 件 都 会 上传到该文件夹):AUG
            % Total % Received % Xferd Average Speed Time Time Time Current

            Dload Upload Total Spent Left Speed

            0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--100 13 100 13 0 0 549 0 --:--:-- --:--:-- --:--:-- 565
            域名dns解析IP:2a01:4f8:191:48c:2018:2019:0:b3 (2a01:4f8:191:48c:2018:2019:0:b3
            本机IP: 144.76.17.141
            (standard_in) 1: syntax error
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: syntax error
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            [Error] 域名dns解析IP 与 本机IP 不匹配 是否继续安装?(y/n)
            y
            继续安装
            Hit:1 http://security.debian.org stretch/updates InRelease
            Ign:2 http://ftp.debian.org/debian stretch InRelease
            Hit:3 http://ftp.debian.org/debian stretch-updates InRelease
            Hit:4 http://ftp.debian.org/debian stretch Release
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            70 packages can be upgraded. Run 'apt list --upgradable' to see them.Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            The following additional packages will be installed:
            libgd3 libjbig0 libjpeg62-turbo libnginx-mod-http-auth-pam
            libnginx-mod-http-dav-ext libnginx-mod-http-echo
            libnginx-mod-http-geoip libnginx-mod-http-image-filter
            libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
            libnginx-mod-http-xslt-filter libnginx-mod-mail
            libnginx-mod-stream libtiff5 libwebp6 libxslt1.1 nginx-common
            nginx-full
            Suggested packages:
            libgd-tools fcgiwrap nginx-doc
            The following NEW packages will be installed:
            libgd3 libjbig0 libjpeg62-turbo libnginx-mod-http-auth-pam
            libnginx-mod-http-dav-ext libnginx-mod-http-echo
            libnginx-mod-http-geoip libnginx-mod-http-image-filter
            libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
            libnginx-mod-http-xslt-filter libnginx-mod-mail
            libnginx-mod-stream libtiff5 libwebp6 libxslt1.1 nginx
            nginx-common nginx-full
            0 upgraded, 19 newly installed, 0 to remove and 70 not upgraded.
            Need to get 2592 kB of archives.
            After this operation, 5480 kB of additional disk space will be used.
            Get:1 http://ftp.debian.org/debian stretch/main amd64 libjpeg62-turbo amd64 1:1.5.1-2 [134 kB]
            Get:2 http://ftp.debian.org/debian stretch/main amd64 libjbig0 amd64 2.1-3.1+b2 [31.0 kB]
            Get:3 http://ftp.debian.org/debian stretch/main amd64 libtiff5 amd64 4.0.8-2+deb9u4 [238 kB]
            Get:4 http://ftp.debian.org/debian stretch/main amd64 libwebp6 amd64 0.5.2-1 [235 kB]
            Get:5 http://ftp.debian.org/debian stretch/main amd64 libgd3 amd64 2.2.4-2+deb9u5 [132 kB]
            Get:6 http://ftp.debian.org/debian stretch/main amd64 nginx-common all 1.10.3-1+deb9u3 [105 kB]
            Get:7 http://ftp.debian.org/debian stretch/main amd64 libnginx-mod-http-auth-pam amd64 1.10.3-1+deb9u3 [86.1 kB]
            Setting up libjpeg62-turbo:amd64 (1:1.5.1-2) ... Setting up libjbig0:amd64 (2.1-3.1+b2) ... Setting up nginx-common (1.10.3-1+deb9u3) ... Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service -> /lib/systemd/system/nginx.service. Setting up libnginx-mod-http-subs-filter (1.10.3-1+deb9u3) ... Setting up libtiff5:amd64 (4.0.8-2+deb9u4) ... Setting up libxslt1.1:amd64 (1.1.29-2.1+deb9u2) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... Processing triggers for systemd (232-25+deb9u8) ... Setting up libnginx-mod-http-auth-pam (1.10.3-1+deb9u3) ... Setting up libnginx-mod-http-dav-ext (1.10.3-1+deb9u3) ... Setting up libnginx-mod-mail (1.10.3-1+deb9u3) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up libnginx-mod-http-xslt-filter (1.10.3-1+deb9u3) ... Setting up libnginx-mod-http-upstream-fair (1.10.3-1+deb9u3) ... Setting up libnginx-mod-http-geoip (1.10.3-1+deb9u3) ... Setting up libwebp6:amd64 (0.5.2-1) ... Setting up libnginx-mod-stream (1.10.3-1+deb9u3) ... Setting up libnginx-mod-http-echo (1.10.3-1+deb9u3) ... Setting up libgd3:amd64 (2.2.4-2+deb9u5) ... Setting up libnginx-mod-http-image-filter (1.10.3-1+deb9u3) ... Setting up nginx-full (1.10.3-1+deb9u3) ... Setting up nginx (1.10.3-1+deb9u3) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... [OK] nginx 安 装 成 功 Reading package lists... Done Building dependency tree Reading state information... Done
            The following additional packages will be installed:
            php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache
            php7.0-readline psmisc
            Suggested packages:
            php-pear
            The following NEW packages will be installed:
            php-common php7.0-cgi php7.0-cli php7.0-common php7.0-curl
            php7.0-fpm php7.0-gd php7.0-json php7.0-opcache php7.0-readline
            psmisc

            Creating config file /etc/php/7.0/mods-available/json.ini with new version Setting up php7.0-cli (7.0.33-0+deb9u7) ... update-alternatives: using /usr/bin/php7.0 to provide /usr/bin/php (php) in auto mode update-alternatives: using /usr/bin/phar7.0 to provide /usr/bin/phar (phar) in auto mode update-alternatives: using /usr/bin/phar.phar7.0 to provide /usr/bin/phar.phar (phar.phar) in auto mode Creating config file /etc/php/7.0/cli/php.ini with new version Setting up php7.0-fpm (7.0.33-0+deb9u7) ... Creating config file /etc/php/7.0/fpm/php.ini with new version Created symlink /etc/systemd/system/multi-user.target.wants/php7.0-fpm.service -> /lib/systemd/system/php7.0-fpm.service. Setting up php7.0-cgi (7.0.33-0+deb9u7) ... update-alternatives: using /usr/bin/php-cgi7.0 to provide /usr/bin/php-cgi (php-cgi) in auto mode update-alternatives: using /usr/lib/cgi-bin/php7.0 to provide /usr/lib/cgi-bin/php (php-cgi-bin) in auto mode Creating config file /etc/php/7.0/cgi/php.ini with new version Processing triggers for systemd (232-25+deb9u8) ... (Reading database ... 20896 files and directories currently installed.) Preparing to unpack .../liberror-perl_0.17024-1_all.deb ... Unpacking liberror-perl (0.17024-1) ... Selecting previously unselected package git-man. Preparing to unpack .../git-man_1%3a2.11.0-3+deb9u5_all.deb ... Unpacking git-man (1:2.11.0-3+deb9u5) ... Selecting previously unselected package git. Preparing to unpack .../git_1%3a2.11.0-3+deb9u5_amd64.deb ... Unpacking git (1:2.11.0-3+deb9u5) ... Selecting previously unselected package patch. Preparing to unpack .../patch_2.7.5-1+deb9u2_amd64.deb ... Unpacking patch (2.7.5-1+deb9u2) ... Selecting previously unselected package rsync. Preparing to unpack .../rsync_3.1.2-1+deb9u2_amd64.deb ... Unpacking rsync (3.1.2-1+deb9u2) ... Setting up git-man (1:2.11.0-3+deb9u5) ... Setting up liberror-perl (0.17024-1) ... Setting up rsync (3.1.2-1+deb9u2) ... Created symlink /etc/systemd/system/multi-user.target.wants/rsync.service -> /lib/systemd/system/rsync.service. Setting up patch (2.7.5-1+deb9u2) ... Processing triggers for systemd (232-25+deb9u8) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up git (1:2.11.0-3+deb9u5) ... Cloning into 'oneindex'... remote: Enumerating objects: 1371, done. remote: Total 1371 (delta 0), reused 0 (delta 0), pack-reused 1371 Receiving objects: 100% (1371/1371), 3.57 MiB | 3.15 MiB/s, done.

            Resolving deltas: 100% (736/736), done.
            [OK] OneIndex 下载成功
            --2020-02-23 04:03:49-- https://github.com/mayswind/AriaNg/releases/download/0.3.0/aria-ng-0.3.0.zip
            Resolving github.com (github.com)... 140.82.118.4
            Connecting to github.com (github.com)|140.82.118.4|:443... connected.HTTP request sent, awaiting response... 302 Found
            Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/58753834/3c65e772-b11e-11e7-9bc6-d446b32e667a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200223%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200223T040349Z&X-Amz-Expires=300&X-Amz-Signature=105ee48971214bf05282a78b97fa3e8c9c6610c1efe87a15584db1352af067b9&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Daria-ng-0.3.0.zip&response-content-type=application%2Foctet-stream [following]
            --2020-02-23 04:03:49-- https://github-production-release-asset-2e65be.s3.amazonaws.com/58753834/3c65e772-b11e-11e7-9bc6-d446b32e667a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200223%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200223T040349Z&X-Amz-Expires=300&X-Amz-Signature=105ee48971214bf05282a78b97fa3e8c9c6610c1efe87a15584db1352af067b9&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Daria-ng-0.3.0.zip&response-content-type=application%2Foctet-stream
            Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.19.48
            Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.19.48|:443... connected.
            HTTP request sent, awaiting response... 200 OK
            Length: 951990 (930K) [application/octet-stream]
            Saving to: 'aria-ng-0.3.0.zip'

            aria-ng-0.3.0.zip 100%[==========>] 929.68K 1.64MB/s in 0.6s

            2020-02-23 04:03:50 (1.64 MB/s) - 'aria-ng-0.3.0.zip' saved [951990/951990]

            Archive: aria-ng-0.3.0.zip
            creating: js/
            inflating: js/angular-packages-1.6.5.min.js
            inflating: js/aria-ng-12608bfb5c.min.js
            inflating: js/bootstrap-3.3.7.min.js
            inflating: js/echarts-common-3.7.1.min.js
            inflating: js/jquery-2.2.4.min.js
            inflating: js/moment-with-locales-2.18.1.min.js
            inflating: js/plugins-f99230fa2d.min.js
            creating: langs/
            inflating: langs/zh_Hans.txt
            inflating: langs/zh_Hant.txt
            inflating: index.html
            inflating: index.manifest
            inflating: LICENSE
            inflating: robots.txt
            [OK] 443 端口未被占用
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            The following NEW packages will be installed:
            netcat socat
            0 upgraded, 2 newly installed, 0 to remove and 70 not upgraded.
            Need to get 362 kB of archives.
            After this operation, 1063 kB of additional disk space will be used.
            Get:1 http://ftp.debian.org/debian stretch/main amd64 netcat all 1.10-41 [8962 B]
            Get:2 http://ftp.debian.org/debian stretch/main amd64 socat amd64 1.7.3.1-2+deb9u1 [353 kB]
            Fetched 362 kB in 0s (2452 kB/s)
            Selecting previously unselected package netcat.
            (Reading database ... 21811 files and directories currently installed.) Preparing to unpack .../netcat_1.10-41_all.deb ... Unpacking netcat (1.10-41) ... Selecting previously unselected package socat. Preparing to unpack .../socat_1.7.3.1-2+deb9u1_amd64.deb ... Unpacking socat (1.7.3.1-2+deb9u1) ... Setting up socat (1.7.3.1-2+deb9u1) ... Setting up netcat (1.10-41) ... Processing triggers for man-db (2.7.6.1-2) ... [OK] SSL 证 书 生 成 脚 本 依 赖 安 装 成 功 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
            0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--100 775 0 775 0 0 8313 0 --:--:-- --:--:-- --:--:-- 8333
            % Total % Received % Xferd Average Speed Time Time Time Current

            Dload Upload Total Spent Left Speed

            0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--100 191k 100 191k 0 0 2228k 0 --:--:-- --:--:-- --:--:-- 2255k
            [Sun Feb 23 04:04:02 UTC 2020] Installing from online archive.
            [Sun Feb 23 04:04:02 UTC 2020] Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
            [Sun Feb 23 04:04:03 UTC 2020] Extracting master.tar.gz
            [Sun Feb 23 04:04:04 UTC 2020] Installing to /root/.acme.sh
            [Sun Feb 23 04:04:04 UTC 2020] Installed to /root/.acme.sh/acme.sh
            [Sun Feb 23 04:04:04 UTC 2020] Installing alias to '/root/.bashrc'
            [Sun Feb 23 04:04:04 UTC 2020] OK, Close and reopen your terminal to start using acme.sh
            [Sun Feb 23 04:04:04 UTC 2020] Installing cron job
            no crontab for root
            no crontab for root
            [Sun Feb 23 04:04:04 UTC 2020] Good, bash is found, so change the shebang to use bash as preferred.
            [Sun Feb 23 04:04:05 UTC 2020] OK
            [Sun Feb 23 04:04:05 UTC 2020] Install success!
            [OK] SSL 证书生成脚本安装成功
            [Sun Feb 23 04:04:09 UTC 2020] Standalone mode.
            [Sun Feb 23 04:04:10 UTC 2020] Create account key ok.
            [Sun Feb 23 04:04:10 UTC 2020] Registering account
            [Sun Feb 23 04:04:12 UTC 2020] Registered
            [Sun Feb 23 04:04:12 UTC 2020] ACCOUNT_THUMBPRINT='nXEoF7a_-t0eTYRmvwQTtCT44Ae2e9zyXOatfM2ZFsU'
            [Sun Feb 23 04:04:12 UTC 2020] Creating domain key
            [Sun Feb 23 04:04:12 UTC 2020] The domain key is here: /root/.acme.sh/one.nshfwz.info_ecc/one.nshfwz.info.key
            [Sun Feb 23 04:04:12 UTC 2020] Single domain='one.nshfwz.info'
            [Sun Feb 23 04:04:12 UTC 2020] Getting domain auth token for each domain
            [Sun Feb 23 04:04:14 UTC 2020] Getting webroot for domain='one.nshfwz.info'
            [Sun Feb 23 04:04:14 UTC 2020] Verifying: one.nshfwz.info
            [Sun Feb 23 04:04:14 UTC 2020] Standalone mode server
            [Sun Feb 23 04:04:19 UTC 2020] Pending
            [Sun Feb 23 04:04:22 UTC 2020] Pending
            [Sun Feb 23 04:04:24 UTC 2020] Pending
            [Sun Feb 23 04:04:27 UTC 2020] one.nshfwz.info:Verify error:Fetching http://one.nshfwz.info/.well-known/acme-challenge/kFoZo5X6I05Vd2xNno9-0Gt-bAl56VEXoWCNd4S5t60: Timeout during connect (likely firewall problem)
            [Sun Feb 23 04:04:27 UTC 2020] Please add '--debug' or '--log' to check more details.
            [Sun Feb 23 04:04:27 UTC 2020] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
            [Error] SSL 证书生成失败
            root@oranme430:~# wget https://www.moerats.com/usr/shell/Aria2_OneIndex.sh && bash Aria2_OneIndex.sh
            --2020-02-23 04:05:57-- https://www.moerats.com/usr/shell/Aria2_OneIndex.sh
            Resolving www.moerats.com (www.moerats.com)... 172.83.156.172
            Connecting to www.moerats.com (www.moerats.com)|172.83.156.172|:443... connected.
            HTTP request sent, awaiting response... 200 OK
            Length: 11761 (11K) [application/octet-stream]
            Saving to: 'Aria2_OneIndex.sh.1'

            Aria2_OneIndex.sh 100%[==========>] 11.49K --.-KB/s in 0s

            2020-02-23 04:05:58 (176 MB/s) - 'Aria2_OneIndex.sh.1' saved [11761/11761]

            [OK] 当前系统为 Debian 9
            [OK] 当前用户是root用户,进入安装流程
            Hit:1 http://security.debian.org stretch/updates InRelease
            Ign:2 http://ftp.debian.org/debian stretch InRelease
            Hit:3 http://ftp.debian.org/debian stretch-updates InRelease
            Hit:4 http://ftp.debian.org/debian stretch Release
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            70 packages can be upgraded. Run 'apt list --upgradable' to see them.Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            bc is already the newest version (1.06.95-9+b3).
            curl is already the newest version (7.52.1-5+deb9u9).
            net-tools is already the newest version (1.60+git20161116.90da8a0-1).sudo is already the newest version (1.8.19p1-2.1+deb9u2).
            unzip is already the newest version (6.0-21+deb9u2).
            wget is already the newest version (1.18-5+deb9u3).
            0 upgraded, 0 newly installed, 0 to remove and 70 not upgraded.
            请输入你的OneIndex域名信息(如:oneindex.moerats.com):one.nshfwz.info
            请输入你的Aria2密钥:AriaNG
            请输入你OneIndex/OneDrive中的一个文件夹(格式:RATS,此后所有文件都会上传到该文件夹):AUG
            % Total % Received % Xferd Average Speed Time Time Time Current

            Dload Upload Total Spent Left Speed

            0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--100 13 100 13 0 0 546 0 --:--:-- --:--:-- --:--:-- 565
            域名dns解析IP:2a01:4f8:191:48c:2018:2019:0:b3 (2a01:4f8:191:48c:2018:2019:0:b3
            本机IP: 144.76.17.141
            (standard_in) 1: syntax error
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: syntax error
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            (standard_in) 1: illegal character: :
            [Error] 域名dns解析IP 与 本机IP 不匹配 是否继续安装?(y/n)
            y
            继续安装
            Hit:1 http://security.debian.org stretch/updates InRelease
            Ign:2 http://ftp.debian.org/debian stretch InRelease
            Hit:3 http://ftp.debian.org/debian stretch-updates InRelease
            Hit:4 http://ftp.debian.org/debian stretch Release
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            70 packages can be upgraded. Run 'apt list --upgradable' to see them.Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            nginx is already the newest version (1.10.3-1+deb9u3).
            0 upgraded, 0 newly installed, 0 to remove and 70 not upgraded.
            [OK] nginx 安装成功
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            php7.0-cgi is already the newest version (7.0.33-0+deb9u7).
            php7.0-curl is already the newest version (7.0.33-0+deb9u7).
            php7.0-fpm is already the newest version (7.0.33-0+deb9u7).
            php7.0-gd is already the newest version (7.0.33-0+deb9u7).
            0 upgraded, 0 newly installed, 0 to remove and 70 not upgraded.
            [OK] php7 安装成功
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            git is already the newest version (1:2.11.0-3+deb9u5).
            0 upgraded, 0 newly installed, 0 to remove and 70 not upgraded.
            fatal: destination path 'oneindex' already exists and is not an empty directory.
            [OK] OneIndex 下载成功
            --2020-02-23 04:06:56-- https://github.com/mayswind/AriaNg/releases/download/0.3.0/aria-ng-0.3.0.zip
            Resolving github.com (github.com)... 140.82.118.4
            Connecting to github.com (github.com)|140.82.118.4|:443... connected.HTTP request sent, awaiting response... 302 Found
            Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/58753834/3c65e772-b11e-11e7-9bc6-d446b32e667a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200223%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200223T040656Z&X-Amz-Expires=300&X-Amz-Signature=899df2874e61fb8fab79b25392f1df2f810bd4b98744e52452bae2e8a2434c6f&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Daria-ng-0.3.0.zip&response-content-type=application%2Foctet-stream [following]
            --2020-02-23 04:06:56-- https://github-production-release-asset-2e65be.s3.amazonaws.com/58753834/3c65e772-b11e-11e7-9bc6-d446b32e667a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200223%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200223T040656Z&X-Amz-Expires=300&X-Amz-Signature=899df2874e61fb8fab79b25392f1df2f810bd4b98744e52452bae2e8a2434c6f&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Daria-ng-0.3.0.zip&response-content-type=application%2Foctet-stream
            Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.164.11
            Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.164.11|:443... connected.
            HTTP request sent, awaiting response... 200 OK
            Length: 951990 (930K) [application/octet-stream]
            Saving to: 'aria-ng-0.3.0.zip.1'

            aria-ng-0.3.0.zip 100%[==========>] 929.68K 1.66MB/s in 0.5s

            2020-02-23 04:06:57 (1.66 MB/s) - 'aria-ng-0.3.0.zip.1' saved [951990/951990]

            Archive: aria-ng-0.3.0.zip
            replace js/angular-packages-1.6.5.min.js? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: js/angular-packages-1.6.5.min.js
            replace js/aria-ng-12608bfb5c.min.js? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            y inflating: js/aria-ng-12608bfb5c.min.js
            replace js/bootstrap-3.3.7.min.js? [y]es, [n]o, [A]ll, [N]one, [r]ename:
            inflating: js/bootstrap-3.3.7.min.js
            replace js/echarts-common-3.7.1.min.js? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: js/echarts-common-3.7.1.min.js
            replace js/jquery-2.2.4.min.js? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: js/jquery-2.2.4.min.js
            replace js/moment-with-locales-2.18.1.min.js? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: js/moment-with-locales-2.18.1.min.js
            replace js/plugins-f99230fa2d.min.js? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: js/plugins-f99230fa2d.min.js
            replace langs/zh_Hans.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename:
            error: invalid response [{ENTER}]
            replace langs/zh_Hans.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: langs/zh_Hans.txt
            replace langs/zh_Hant.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: langs/zh_Hant.txt
            replace index.html? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: index.html
            replace index.manifest? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: index.manifest
            replace LICENSE? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: LICENSE
            replace robots.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: robots.txt
            replace css/aria-ng-2aa6affdda.min.css? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: css/aria-ng-2aa6affdda.min.css
            replace css/bootstrap-3.3.7.min.css? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: css/bootstrap-3.3.7.min.css
            replace css/plugins-a7090b9582.min.css? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: css/plugins-a7090b9582.min.css
            replace fonts/fontawesome-webfont.eot? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: fonts/fontawesome-webfont.eot
            replace fonts/fontawesome-webfont.svg? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: fonts/fontawesome-webfont.svg
            replace fonts/fontawesome-webfont.ttf? [y]es, [n]o, [A]ll, [N]one, [r]ename:
            error: invalid response [{ENTER}]
            replace fonts/fontawesome-webfont.ttf? [y]es, [n]o, [A]ll, [N]one, [r]ename:
            error: invalid response [{ENTER}]
            replace fonts/fontawesome-webfont.ttf? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: fonts/fontawesome-webfont.ttf
            replace fonts/fontawesome-webfont.woff? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: fonts/fontawesome-webfont.woff
            replace fonts/fontawesome-webfont.woff2? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
            inflating: fonts/fontawesome-webfont.woff2
            [OK] AriaNg 下载成功
            y
            [OK] 80 端口未被占用
            [OK] 443 端口未被占用
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            netcat is already the newest version (1.10-41).
            socat is already the newest version (1.7.3.1-2+deb9u1).
            0 upgraded, 0 newly installed, 0 to remove and 70 not upgraded.
            [OK] SSL 证书生成脚本依赖安装成功
            % Total % Received % Xferd Average Speed Time Time Time Current

            Dload Upload Total Spent Left Speed

            0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--100 775 0 775 0 0 9784 0 --:--:-- --:--:-- --:--:-- 9810
            % Total % Received % Xferd Average Speed Time Time Time Current

            Dload Upload Total Spent Left Speed

            0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--100 191k 100 191k 0 0 765k 0 --:--:-- --:--:-- --:--:-- 766k
            [Sun Feb 23 04:07:45 UTC 2020] Installing from online archive.
            [Sun Feb 23 04:07:45 UTC 2020] Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
            [Sun Feb 23 04:07:46 UTC 2020] Extracting master.tar.gz
            [Sun Feb 23 04:07:46 UTC 2020] Installing to /root/.acme.sh
            [Sun Feb 23 04:07:46 UTC 2020] Installed to /root/.acme.sh/acme.sh
            [Sun Feb 23 04:07:46 UTC 2020] Installing alias to '/root/.bashrc'
            [Sun Feb 23 04:07:46 UTC 2020] OK, Close and reopen your terminal to start using acme.sh
            [Sun Feb 23 04:07:46 UTC 2020] Installing cron job
            4 0 * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
            [Sun Feb 23 04:07:46 UTC 2020] Good, bash is found, so change the shebang to use bash as preferred.
            [Sun Feb 23 04:07:48 UTC 2020] OK
            [Sun Feb 23 04:07:48 UTC 2020] Install success!
            [OK] SSL 证书生成脚本安装成功
            [Sun Feb 23 04:07:51 UTC 2020] Standalone mode.
            [Sun Feb 23 04:07:52 UTC 2020] Single domain='one.nshfwz.info'
            [Sun Feb 23 04:07:52 UTC 2020] Getting domain auth token for each domain
            [Sun Feb 23 04:07:55 UTC 2020] Getting webroot for domain='one.nshfwz.info'
            [Sun Feb 23 04:07:56 UTC 2020] Verifying: one.nshfwz.info
            [Sun Feb 23 04:07:56 UTC 2020] Standalone mode server

            [Sun Feb 23 04:08:00 UTC 2020] Pending
            [Sun Feb 23 04:08:03 UTC 2020] Pending
            [Sun Feb 23 04:08:06 UTC 2020] Pending
            [Sun Feb 23 04:08:09 UTC 2020] one.nshfwz.info:Verify error:Fetching http://one.nshfwz.info/.well-known/acme-challenge/aXMRZd-hrSAgO7ExSm-2PS33-72y6U38ZlrqPvihpOI: Timeout during connect (likely firewall problem)
            [Sun Feb 23 04:08:09 UTC 2020] Please add '--debug' or '--log' to check more details.
            [Sun Feb 23 04:08:09 UTC 2020] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
            [Error] SSL 证书生成失败
            root@oranme430:~# y
            -bash: y: command not found
            root@oranme430:~#
            root@oranme430:~#

          4. lzbzz
            @Rat's

            刚刚好了,然后又坏了

            1. Rat's
              @lzbzz

              你怎么跑了2次脚本,这只能跑一次,第二次会出问题

              1. lzbzz
                @Rat's

                第一次也不行,说连接超时