最低配置:2核4G云服务器,系统支持CentOS7.9+/Ubuntu22.04+,预装软件版本固定如下:
依赖安装命令(CentOS为例,Ubuntu替换yum为apt即可):
``` 安装JDK1.8 yum install -y java-1.8.0-openjdk 安装MySQL5.7 yum install -y mysql-community-server systemctl start mysqld && systemctl enable mysqld 安装Nginx yum install -y nginx systemctl start nginx && systemctl enable nginx ```登录MySQL执行以下语句,直接复制即可使用:
``` create database archives default character set utf8mb4 collate utf8mb4_general_ci; grant all on archives. to 'archives_user'@'%' identified by 'Archives@2024'; flush privileges; ```执行以下命令下载开源B/S版档案系统后端包:
``` wget https://mirror.ghproxy.com/https://github.com/lanTaiOrg/archives/releases/download/v2.5.0/archives-admin.jar ```在同目录下创建application.yml配置文件,完整内容如下,可直接复制:
``` server: port: 8080 spring: datasource: url: jdbc:mysql://你的服务器IP:3306/archives?useUnicode=true&characterEncoding=utf8&useSSL=false username: archives_user password: Archives@2024 driver-class-name: com.mysql.jdbc.Driver 评优模块专属配置 assessment: enable: true upload-path: /data/archives/assessment/ score-offset-limit: 20 ```注意:将配置中“你的服务器IP”替换为实际服务器公网IP,提前创建/data/archives/assessment/目录,执行命令mkdir -p /data/archives/assessment/
启动后端服务命令:
``` nohup java -jar archives-admin.jar --spring.config.location=./application.yml > app.log 2>&1 & ```验证启动成功:执行curl http://localhost:8080/actuator/health,返回{"status":"UP"}即为成功。

执行以下命令下载前端包并解压:
``` wget https://mirror.ghproxy.com/https://github.com/lanTaiOrg/archives/releases/download/v2.5.0/archives-ui.tar.gz tar -zxvf archives-ui.tar.gz -C /usr/share/nginx/html/ ```修改Nginx配置文件/etc/nginx/nginx.conf,在http块内新增以下server配置,直接复制即可:
``` server { listen 80; server_name 你的服务器IP; root /usr/share/nginx/html/archives-ui; index index.html; 解决单页面刷新404问题 location / { try_files $uri $uri/ /index.html; } 代理后端接口 location /api/ { proxy_pass http://127.0.0.1:8080/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } } ```注意替换配置中“你的服务器IP”为实际公网IP,执行nginx -t检查配置无误后,执行systemctl restart nginx重启Nginx
部署完成后访问http://你的服务器IP,默认管理员账号:admin,默认密码:Admin@1234。
登录后台后进入【系统管理】-【模块管理】,找到【评优管理】模块,勾选启用状态,保存后刷新页面,左侧菜单栏即可看到评优管理入口。
进入【评优管理】-【指标库】,点击下载模板,模板固定字段为:序号、指标名称、分值、考核维度(个人/集体)、是否必填、备注。
填写模板时需注意:所有指标分值总和必须为100,否则导入失败;考核维度只能填“个人”或“集体”两个选项。填好后点击导入按钮上传即可。
进入【系统管理】-【工作流管理】,点击导入流程,流程模板下载地址:https://mirror.ghproxy.com/https://raw.githubusercontent.com/lanTaiOrg/archives/main/docs/assessment-flow.bpmn20.xml
导入后编辑流程节点,给三个节点分别配置对应角色: