自建实例的同学,请务必添加如下两个定时任务,推荐在每天早晨低峰时段运行

RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove --days=14

清理缓存的外站媒体文件,和

RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove-orphans

清理未关联任何 toot 的“无主”媒体文件

另外推荐配合以下任务食用

RAILS_ENV=production /home/mastodon/live/bin/tootctl statuses remove

清理没有同本站任何用户产生关联的 toot 本身(比如跨站轴上收到的、没有本站用户转发/评论/收藏过的消息)

各命令参数请参考 -h 和官方文档按实际情况调整:docs.joinmastodon.org/admin/to

#实例维护 #长毛象建站 #长毛象中文使用指南

您的钱包会感谢我的╮( ̄▽ ̄")╭

@AstroProfundis 存个tag,看看实例怎么搞_(:з」∠)_

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
alive.bar

你好,欢迎使用 alive.bar 社交媒体实例。 alive.bar 仅仅是一个服务器位于美国的网站,它使用了「长毛象(Mastodon)」服务。