LOc论坛wuting0122大佬分享的原帖地址:http://www.hostloc.com/forum.php?mod=viewthread&tid=443811&extra=page%3D2&page=1&mobile=2
可多个GD同时挂载到网盘下
1. 用途:
使用GoogleDrive分享出的文件夹ID,即可挂载成网盘。即使你没GD也没关系。。。
2. 特性:
不占服务器空间;可多个GD同时挂载到网盘;直链下载;在线预览(图片、视频、音频)
3. 安装
- wget —no–check–certificate –qO– https://raw.githubusercontent.com/reruin/gdlist/master/install.sh | bash
或者
- docker build –t yourname/gdlist .docker run –d –v /etc/gdlist:/app/config –p 33001:33001 —name=“gdlist” yourname/gdlist
或者
- docker–compose up
4. 演示地址
https://gdlist.reruin.net/GitHub
https://github.com/reruin/gdlist
yumin9822分享开机启动脚本
需要安装forever
- npm i forever –g
修改DEAMON对应的参数,就可以了。另存为/etc/init.d/gdlist
- chmod a+x /etc/init.d/gdlist
- update–rc.d gdlist defaults
- #!/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