Ubuntu安装Mastodon
从源中安装 via https://docs.joinmastodon.org/zh-cn/admin/install/ 创建你自己的Mastodon站点的教学指献。 前提条件 一台你有root访问权限的运行 Ubuntu 18.04 的机器一个用于Mastodon站点的域名(或一个子域名),例如:example.com一个电子邮件发送服务提供商,或其他SMTP服务器 你需要使用root用户运行命令。如果你现在不是root用户,请切换至root用户: su - root 前期准备 非必须 开启SSH直接root用户登录 以ubuntu用户登录后,给root添加密码: sudo passwd root 修改SSH设置文件: sudo nano /etc/ssh/sshd_config 找到PermitRootLogin设置为yes PermitRootLogin yes ctrl+x选择y保存 回车将修改写入文件 然后重启ssh守护进程 sudo service ssh restart 软件仓库 首先确保已经安装curl: sudo apt install curl Node.js curl -sL https://deb.nodesource.com/setup_12.x | bash - Yarn curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list 软件包 apt update apt install -y \ imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core \ g++ libprotobuf-dev protobuf-compiler pkg-config nodejs gcc autoconf \ bison build-essential libssl-dev libyaml-dev libreadline6-dev \ zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev \ nginx redis-server redis-tools postgresql postgresql-contrib \ certbot python-certbot-nginx yarn libidn11-dev libicu-dev libjemalloc-dev 安装 Ruby 因为使用 rbenv 可以更容易的获得正确的版本并在新版本发布后进行更新,我们将使用 rbenv 来管理Ruby版本。rbenv 必须安装在单个Linux用户中,因此,我们首先需要使用以下命令创建一个Mastodon用户: ...