Last update at :2024-05-29,Edit by888u
Reference: OneIndex: Create your own public cloud disk using Microsoft Cloud disk
1. Introduction to GDList
2. Installation of GDList
1. Upgrade the system
apt-get update2. Install Node.js v9.x
curl -sL https://deb.nodesource.com/setup_9.x | bash - apt-get install -y nodejs3. Install pm2
npm install -g pm24. Install GDList
wget --no-check-certificate -qO- https://raw.githubusercontent.com/reruin/gdlist/master/install.sh | bash5. Visit
http://Server IP:330013. Related issues
1. Use a, first enable Google drive sharing
b. View folder path
c. Enter the browser: http://server IP:33001, settings
2. Start installing forever
npm i forever -gModify the parameters corresponding to DEAMON
chmod a+x /etc/init.d/gdlist update-rc.d gdlist defaultsSave the following as /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 ;; esacLocal download: gdlist.zip (only supports Gdrive), sharelist.zip (supports Gdrive, supports Odrive)
Demo:
via: https://github.com/reruin/gdlist、http://www.hostloc.com/thread-443811-1-1.html
Recommended site search: distribution host Korean cn2 server, free ftp space, Alibaba cloud registration, Xi'an server rental, icp registration center, free host, local IP address query, free cn domain name registration, server,
发表评论