别再用错平台!Mastodon、Pixelfed、Pleroma、WriteFreely、Ghost 与 Misskey 全面对比:谁才是你的「真·社交本命」? - 技术宅银魂 - 科技改变生活 - 万事屋 | 生活·动漫·娱乐综合社区-银魂同好聚集地

别再用错平台!Mastodon、Pixelfed、Pleroma、WriteFreely、Ghost 与 Misskey 全面对比:谁才是你的「真·社交本命」?

后台私信天天有人问:

「阿银,我想搭个自己的微博,到底选 Misskey、Mastodon 还是 Pixelfed?」

今天把键盘拍烂,一次给你讲透 5 个热门 ActivityPub 程序,附赠 Debian / Ubuntu 裸机安装指令,不扯 Docker,保证新手也能复制粘贴就能跑。坐稳了,发车!


一、一句话认识 5 大联邦宇宙选手

程序 一句话定位 官方网址 源码下载 后端语言 默认数据库 能否与 Misskey 互关互评
Mastodon 推特替代品,用户最多 joinmastodon.org GitHub Mastodon Ruby PostgreSQL
Pixelfed Instagram 替代品,主打图片 pixelfed.org GitHub Pixelfed PHP 8.x MySQL / MariaDB
Pleroma 轻量版 Mastodon,省资源 pleroma.social Git Pleroma Elixir PostgreSQL
WriteFreely 极简博客,长文神器 writefreely.org GitHub WriteFreely Go SQLite / MySQL
Ghost + ActivityPub 插件 专业会员制博客 ghost.org GitHub Ghost Node.js MySQL 8

二、Debian / Ubuntu 裸机安装教程(通通不用 Docker)

统一约定:
系统:Ubuntu 22.04 / Debian 12
普通用户:sudo 权限
域名:example.com(自己换)
数据库 root 密码:请自行替换

1. Mastodon(Ruby + PostgreSQL)

# 系统依赖
sudo apt update && sudo apt install -y curl wget gnupg apt-transport-https

# Node.js 20.x
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs

# Yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install -y yarn

# PostgreSQL
sudo apt install -y postgresql postgresql-contrib
sudo -u postgres createuser -P mastodon
sudo -u postgres createdb -O mastodon mastodon_production

# Ruby
sudo apt install -y ruby ruby-dev build-essential libpq-dev libxml2-dev libxslt1-dev

# 拉代码
sudo mkdir -p /var/www/mastodon && cd /var/www/mastodon
sudo chown -R $USER:$USER /var/www/mastodon
git clone https://github.com/mastodon/mastodon.git .
git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)

# 安装依赖
bundle install --deployment --without development test
yarn install --pure-lockfile

# 交互式配置
cp .env.production.sample .env.production
nano .env.production  # 改域名、数据库、SMTP
RAILS_ENV=production bundle exec rake mastodon:setup

2. Pixelfed(PHP 8.x + MySQL)

# 系统依赖
sudo apt update && sudo apt install -y nginx php8.2-fpm php8.2-{bcmath,ctype,curl,dom,fileinfo,gd,intl,json,mbstring,openssl,pdo,pdo_mysql,tokenizer,xml,zip} redis-server mariadb-server

# 数据库
sudo mysql_secure_installation
sudo mysql -e "CREATE DATABASE pixelfed; CREATE USER 'pixelfed'@'localhost' IDENTIFIED BY 'StrongPass!'; GRANT ALL ON pixelfed.* TO 'pixelfed'@'localhost'; FLUSH PRIVILEGES;"

# 拉代码
cd /var/www
sudo git clone https://github.com/pixelfed/pixelfed.git
cd pixelfed
sudo chown -R www-data:www-data .
sudo -u www-data composer install --no-dev
sudo -u www-data cp .env.example .env
sudo -u www-data nano .env  # APP_URL、DB 信息、REDIS_HOST=127.0.0.1
sudo -u www-data php artisan key:generate
sudo -u www-data php artisan migrate --force

3. Pleroma(Elixir + PostgreSQL)

# 系统依赖
sudo apt update && sudo apt install -y postgresql postgresql-contrib elixir erlang-dev erlang-parsetools build-essential git

# 数据库
sudo -u postgres createuser -P pleroma
sudo -u postgres createdb -O pleroma pleroma

# 拉代码
sudo mkdir -p /opt/pleroma && cd /opt/pleroma
sudo chown -R $USER:$USER /opt/pleroma
git clone https://git.pleroma.social/pleroma/pleroma.git .
git checkout stable

# 编译
mix deps.get
MIX_ENV=prod mix compile
MIX_ENV=prod mix pleroma.instance gen
nano config/prod.secret.exs  # 填域名、数据库
MIX_ENV=prod mix ecto.migrate

4. WriteFreely(Go + SQLite/MySQL)

# 系统依赖
sudo apt update && sudo apt install -y wget mysql-server

# 二进制安装(省事)
wget https://github.com/writefreely/writefreely/releases/latest/download/writefreely_0.15.1_linux_amd64.tar.gz
tar xzf writefreely_*.tar.gz
sudo mv writefreely /opt/writefreely && cd /opt/writefreely
./writefreely --init  # 选择 MySQL 或 SQLite
nano config.ini       # 填域名、DB
./writefreely --gen-keys

5. Ghost + ActivityPub 插件(Node.js + MySQL 8)

# 系统依赖
sudo apt update && sudo apt install -y curl ca-certificates gnupg
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt install -y nodejs mysql-server nginx

# 创建数据库
sudo mysql -e "CREATE DATABASE ghostdb; CREATE USER 'ghost'@'localhost' IDENTIFIED BY 'StrongPass!'; GRANT ALL ON ghostdb.* TO 'ghost'@'localhost'; FLUSH PRIVILEGES;"

# 安装 Ghost-CLI
sudo npm install -g ghost-cli@latest
sudo mkdir -p /var/www/ghost
sudo chown $USER:$USER /var/www/ghost
cd /var/www/ghost
ghost install --no-setup-nginx --no-setup-systemd --no-stack
# 按提示填域名、MySQL 信息

# 装 ActivityPub 插件
cd /var/www/ghost
npm install git+https://github.com/NickSto/ghost-activitypub-plugin.git
# 重启 Ghost
ghost restart

三、联邦宇宙「连连看」:它们都能跟 Misskey 如何互联?

  • 互关:在 Misskey 搜索 @user@对方域名 即可关注;对方平台同样操作。
  • 文章推送:WriteFreely / Ghost 发长文 → Misskey 自动以「笔记」形式出现。
  • 图片同步:Pixelfed 发图 → Misskey 时间线直接展示缩略图。
  • 评论回流:Misskey 回复 → 原平台收到评论通知,反之亦然。

一句话:只要都讲 ActivityPub 协议,它们就是天然互通的「多宇宙传送门」。


四、总结:到底该选谁?

  • 想替代微博:直接上 Mastodon
  • 摄影党:选 Pixelfed
  • 树莓派 1G 内存:装 Pleroma
  • 专注写作:用 WriteFreely
  • 付费会员制:上 Ghost + ActivityPub

不管选哪个,记得跟 Misskey 互关,联邦宇宙从此一家亲!

请登录后发表评论

    没有回复内容

万事屋新帖