docker exec -it nextcloud /bin/bash 
    apt upgrade
    sudo apt-get install aria2 curl php-curl
    apt-get install aria2 curl php-curl
    cd /var/www/html/apps
    wget https://github.com/e-alfred/ocdownloader/releases/download/1.8.0/ocdownloader-1.8.0.tar.gz
    tar zxvf ocdownloader-1.7.12.tar.gz 
     aria2c --enable-rpc --rpc-allow-origin-all -c -D --check-certificate=false
    pip install --upgrade youtube_dl
    apt-get install python-pip -y
    pip install --upgrade youtube_dl

mkdir /var/log/aria2c /var/local/aria2c
touch /var/log/aria2c/aria2c.log
touch /var/local/aria2c/aria2c.sess
chown www-data.www-data -R /var/log/aria2c /var/local/aria2c
chmod 770 -R /var/log/aria2c /var/local/aria2c
sudo -u www-data aria2c --enable-rpc --rpc-allow-origin-all -c -D --log=/var/log/aria2c/aria2c.log --check-certificate=false --save-session=/var/local/aria2c/aria2c.sess --save-session-interval=2 --continue=true --input-file=/var/local/aria2c/aria2c.sess --rpc-save-upload-metadata=true --force-save=true --log-level=warn --rpc-secret=yoursecret


标签: none

添加新评论