静看光阴荏苒
不管不顾不问不说也不念

Gofi:一个简单的个人云盘程序

一个很不错的文件管理器/网盘程序,安装一个supervisor用于守护进程:

apt -y update
apt -y install supervisor

下载给执行权限:

mkdir -p /opt/gofi && cd /opt/gofi
wget https://github.com/Sloaix/Gofi/releases/download/v0.5.4/gofi-linux-amd64 -O gofi
chmod +x gofi

在23333端口上启用gofi:

./gofi -p 23333 -ip 209.50.63.93 # 换成你自己的VPS公网IP,本地搭建的话就指定为127.0.0.1

初次访问WEB界面设置一哈文件仓库啥的:

没问题的话现在可以Ctrl+C退出运行,新建一个supervisor配置文件:

nano /etc/supervisor/conf.d/gofi.conf

写入如下配置:

[program:gofi]
priority=1
directory=/opt/gofi
command=/opt/gofi/gofi -p 23333 -ip 209.50.63.93 # 换成你自己的VPS公网IP,本地搭建的话就指定为127.0.0.1
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/var/log/supervisor/gofi.log

更新supervisor配置:

supervisorctl update

界面挺好看的:

要是可以加个用户验证功能就好了,现阶段还是只适合放在本地运行,放在公网上面的话任何人都能上传文件/修改文件仓库路径可能会有安全问题。

赞(3)
未经允许不得转载:荒岛 » Gofi:一个简单的个人云盘程序
分享到: 更多 (0)

评论 3

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    加个简单的 .htpasswd 是不是也可以 :razz:

    橘子4年前 (2020-01-01) Google Chrome 76.0.3809.132 Google Chrome 76.0.3809.132 Windows 8.1 Windows 8.1回复
    • 我是这么想的也这么做了,但是我反代不成功。。

      LALA4年前 (2020-01-02) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复

分享创造快乐

广告合作资源投稿