Mastodon 维护与备份

定期清理: su – mastodon cd /home/mastodon/live #计算被mastodon占用的空间 RAILS_ENV=production bin/tootctl media usage #移除本地缓存的其它实例媒体附件 RAILS_ENV=production bin/tootctl media remove –days=7 #清除缓存存储 RAILS_ENV=production bin/tootctl cache clear #从数据库中删除未被引用的嘟文 RAILS_ENV=production bin/tootctl statuses remove #移除本地预览卡片缩略图 RAILS_ENV=production bin/tootctl preview_cards remove #扫描出不属于任何媒体附件的文件并移除他们 RAILS_ENV=production bin/tootctl media remove-orphans

Mastodon 安装最后一步

在Mastodon安装最后一步,会遇到: failed to enable unit: unit file mastodon-\x2a.service does not exist. 解决方法贴在这里,备用: systemctl enable mastodon-web mastodon-sidekiq mastodon-streaming (just replace the start with enable) or if you want to write it out: systemctl enable mastodon-web systemctl enable mastodon-sidekiq systemctl enable mastodon-streaming Notes (also for the docs): Not all shells accept auto-completion for systemctl and are just trying to start a service named mastodon-* (where the \x2a is the escaped ascii code from *)