Total Pageviews

Sunday 5 January 2020

Quickshare:一个简洁的文件共享服务器

这个和刚才那个Gofi有点相似,Quickshare不支持目录是个硬伤,但有用户验证的功能,要是两个软件可以“合体”一下就Nice了。。。
安装一个supervisor用于守护进程:
apt -y update
apt -y install unzip supervisor
下载解压:
cd /opt
wget https://github.com/ihexxa/quickshare/releases/download/0.2.2/quickshare_0.0.18_linux_x86_64.zip
unzip quickshare_0.0.18_linux_x86_64.zip
mv quickshare_0.0.18_linux_x86_64 quickshare
cd quickshare
编辑配置文件:
nano config.json
修改默认的管理员账号密码:
  "AdminId": "admin",
  "AdminPwd": "quicksh@re",
更多配置可以看这里:https://github.com/ihexxa/quickshare/blob/master/docs/CONFIG_en-us.md
没问题的话新建quickshare.conf:
nano /etc/supervisor/conf.d/quickshare.conf
写入:
[program:quickshare]
priority=1
directory=/opt/quickshare
command=/opt/quickshare/quickshare
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/var/log/supervisor/quickshare.log
更新supervisor配置:
supervisorctl update
访问你的VPS公网IP+端口8888可以浏览到WEB界面.