此项目是一个在线文件目录的程序, 支持各种对象存储和本地存储, 使用定位是个人放常用工具下载, 或做公共的文件库. 不会向多账户方向开发.
预览地址: https://zfile.jun6.net
文档地址: http://docs.zhaojun.im/zfile
项目地址:https://github.com/zhaojun1998/zfile/
1. 安装依赖
# CentOS系统
yum install -y java-1.8.0-openjdk unzip# Debian 9 / Ubuntu 14+
apt update
apt install -y openjdk-8-jre-headless unzip# Debian 10 (Buster) 系统
apt update && apt install -y apt-transport-https software-properties-common ca-certificates dirmngr gnupg
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add -
add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
apt update && apt install -y adoptopenjdk-8-hotspot-jre2. 下载项目
cd ~
wget https://c.jun6.net/ZFILE/zfile-release.war
mkdir zfile && unzip zfile-release.war -d zfile && rm -rf zfile-release.war
chmod +x zfile/bin/*.sh下载指定版本可以将
zfile-release.war改为zfile-x.x.war,如zfile-2.2.war。
3. 启动项目
~/zfile/bin/start.sh程序的目录结构为:
├── zfile
├── META-INF
├── WEB-INF
└── bin
├── start.sh # 启动脚本
└── stop.sh # 停止脚本
├── restart.sh # 重启脚本访问地址:
用户前台: http://127.0.0.1:8080/#/main
初始安装: http://127.0.0.1:8080/#/install
管理后台: http://127.0.0.1:8080/#/admin
1. 安装依赖 安装 JDK8, 并配置环境变量, 可参考: https://jingyan.baidu.com/article/ce09321b85e8d62bff858f93.html
2. 下载文件 下载文件 https://c.jun6.net/ZFILE/zfile-release.jar
3. 启动项目
在文件所在路径下, 使用 cmd 执行命令 (不支持 powershell)
java -Dfile.encoding=utf-8 -jar -Dserver.port=8080 .\zfile-release.jar