GDList:使用谷歌网盘创建自己的公开网盘

参考:OneIndex:使用微软网盘创建自己的公开网盘

一、GDList介绍

  1. 用途:使用GoogleDrive 或 OneDrive分享出的文件夹ID,即可挂载成网盘。无需账号
  2. 特性:不占服务器空间,直链下载,在线预览(图片、视频、音频)

二、GDList的安装

1、升级系统

apt-get update

2、安装Node.js v9.x

curl -sL https://deb.nodesource.com/setup_9.x | bash -
apt-get install -y nodejs

3、安装pm2

npm install -g pm2

4、安装GDList

wget --no-check-certificate -qO- https://raw.githubusercontent.com/reruin/gdlist/master/install.sh | bash

5、访问

http://服务器IP:33001

三、相关问题

1、使用
a、先开启Google drive的共享
gdlist-3.jpg

gdlist-4.jpg

gdlist-5.jpg

gdlist-6.jpg

b、查看文件夹路径
gdlist-2.jpg

c、浏览器进入:http://服务器IP:33001,设置
gdlist-1.jpg

2、开机启动
安装forever

npm i forever -g

修改DEAMON对应的参数

chmod a+x /etc/init.d/gdlist
update-rc.d gdlist defaults

下面的另存为/etc/init.d/gdlist

#!/bin/bash
### BEGIN INIT INFO
# Provides: nodejs
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: $DAEMON init script.
# Description: Starts and stops $DAEMON daemon.
### END INIT INFO
DEAMON=/root/gdlist/bin/www
LOG=/var/log/nodejs_gd
PID=/tmp/pid_gd
export PATH=$PATH:/usr/local/bin
export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules
node=node
forever=forever
case "$1" in
    start)
        $forever start -l $LOG --pidFile $PID -a $DEAMON
        ;;
    stop)
        $forever stop --pidFile $PID $DEAMON
        ;;
    stopall)
        $forever stopall --pidFile $PID
        ;;
    restartall)
        $forever restartall --pidFile $PID
        ;;
    reload|restart)
        $forever restart -l $LOG --pidFile $PID -a $DEAMON
        ;;
    list)
        $forever list
        ;;
    *)
        echo "Usage: /etc.init.d/node {start|stop|restart|reload|stopall|restartall|list}"
        exit 1
        ;;
esac

本地下载gdlist.zip(仅支持Gdrive)、sharelist.zip(支持Gdrive、支持Odrive)

演示:
GDList-1.png

GDList-2.png

GDList-3.png

GDList-4.png

via:https://github.com/reruin/gdlist、http://www.hostloc.com/thread-443811-1-1.html

    所有主机信息仅是为及时分享并收录,不做推荐!
    专门搜集、分享国内高速、稳定的香港、日本、韩国、新加坡、美西CN2等优质线路的主机:FastVM