为什么需要自己搭建网盘
FileManager 是什么?
我的使用场景
如何搭建? curl -fsSL https:///filemanager/get.sh | bash 或者 wget -qO- https:///filemanager/get.sh | bash Windows 平台使用 PowerShell iwr -useb https:///filemanager/get.ps1 | iex 配置 FileManager 简单配置
vim /etc/file/config.json# 文件内容{ 'port': 1250, 'database': '/etc/database.db', 'scope': '/home/zhangyongcun/doc/', 'allowCommands': true, 'allowEdit': true, 'allowNew': true} 运行服务 filemanager -c /etc/file/config.json 加入 supervisor vim /etc/supervisor/conf.d/file.conf# 文件内容[program:file]user=rootcommand=filemanager -c /etc/file/config.jsonprocess_name=%(program_name)sautostart=trueredirect_stderr=truestdout_logfile=/var/log/file.logstdout_logfile_maxbytes=1MBstdout_logfile_backups=0 使用 nginx 转发端口 vim /etc/nginx/sites-enabled/file# 文件内容server { listen 80; server_name file.xxxx.com; location / { proxy_pass http://localhost:1250; }} 访问:file.xxxx.com 或者 xxxx.com:1250 即可,默认账户:admin 默认密码:admin 登陆之后可以进行密码重置。 界面预览 基本功能 多用户管理 更多高级功能,请参考 FileManager |
|