# Halo 1.4.2 发布

原文：<https://www.halo.run/archives/halo-142-released>

## 新特性

-   文章固定链接支持年份型。[#1095](https://github.com/halo-dev/halo/pull/1095)
    
-   支持添加或修改友链时校验 name 和 url 是否重复。[#1079](https://github.com/halo-dev/halo/pull/1079)
    
-   支持 MinIO 云存储。[#1097](https://github.com/halo-dev/halo/pull/1097)
    
-   支持删除主题时，可选是否删除相关配置。[#1105](https://github.com/halo-dev/halo/pull/1105)
    
-   支持设置定时清理回收站的文章。[#1114](https://github.com/halo-dev/halo/pull/1114)
    
-   重构后台菜单管理，更方便的管理菜单分组以及排序。[#1120](https://github.com/halo-dev/halo/pull/1120)
    

## 问题修复

-   修复 Dockerfile 文件，`JAVA_OPTS` 环境变量不生效的问题。[#1094](https://github.com/halo-dev/halo/pull/1094)
    
-   修复新建文章内容为空时无法保存的问题。[#1099](https://github.com/halo-dev/halo/pull/1099)
    
-   修复上传大体积文件时出现 `OutOfMemoryError` 异常的问题。[#1122](https://github.com/halo-dev/halo/pull/1122)
    

## **升级步骤**

1.  停止运行 Halo：`service halo stop`。
    
2.  备份数据：`cp -r ~/.halo ~/.halo.bak`。
    
3.  重命名（备份）旧运行包：`mv halo-latest.jar halo-latest.jar.bak`。
    
4.  下载新运行包：`wget https://dl.halo.run/release/halo-1.4.2.jar -O halo-latest.jar`。
    
5.  运行：`service halo start`。
    

## **注意事项**

1.  更新前不要忘了备份数据，不管你是以什么方式部署的，都请备份 `~/.halo`，当然，如果你使用 docker 部署，并修改了映射路径的话，就备份你的映射路径。
    
2.  如果有使用 CDN 全站加速，请更新完毕后，刷新全站缓存，并清空浏览器缓存。
