Mastodonサーバ構築記録
- IZUMI162i6
- 1087
- 2
- 0
- 0
大体この手順でインストール。 qiita.com/syumari/items/… Node.jsだけnを使って最新安定版を突っ込んでる。
2020-05-15 20:25:35PostgreSQLのチューニングは公式を参照。設定の場所は /etc/postgresql/9.6/main/postgresql.conf ではなく /etc/postgresql/12/main/postgresql.conf に移動している。
2020-05-18 02:00:41SQLなどの通信をTCP/IP ソケットからUnixドメインソケットに変更するチューニングがあるが、デフォでUnixドメインソケットなのでそのままで良い。
2020-05-18 02:03:17jemalloc [Fediverse][Mastodon] Mastodonサーバの再建:v3.1.3版 | BLUECORE.NET bluecore.net/2020/05/12/fed…
2020-05-16 04:17:36また、Rubyのインストールは公式にあるように rbenv install 2.6.6 ではなく RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.6.6 でjemallocを付ける。
2020-05-18 02:01:25まず、証明書の発行時にはNginxは設定にあるSSL証明書がないので起動できない。そのため一度 certbot certonly -d <domain> で起動し対話にてスタンドアローンを選択して証明書を発行。その後、設定ファイルに作成されたdefaultを削除して再起動。
2020-05-18 01:55:02libgdbm5はlibgdbm6で。python-certbot-nginxはpython3-certbot-nginxで。python3-certbot-nginxでの証明書発行はHTTPでの応答が必要ないのがポイントか。
2020-05-17 07:20:27python3-certbot-nginxで証明書を取得する場合はとりあえず /usr/lib/python3/dist-packages/certbot_nginx/configurator.pyのchallenges.TLSSNI01を削除。
2020-05-17 15:59:45Mastodon鯖を速くしたいときに踏みがちな罠(SidekiqとWeb) qiita.com/204504bySE/ite… #Qiita
2020-05-28 07:28:20Mastodonで常用するコマンド一覧(non-docker版)2020年3月14日 更新 qiita.com/syumari/items/… #Qiita
2020-04-17 18:28:28Mastodonのバージョンアップやコケた時に使うコマンドとか、色々(non-Docker版) 2020/04/07更新 qiita.com/syumari/items/… #Qiita
2020-04-17 18:29:46Elasticsearch 7.0 をMastodonでムリヤリ使う noellabo.qrunch.io/entries/Tfaqkt… #qrunch
2020-06-08 05:26:25ElasticsearchをMastodonとは別のサーバに設置する noellabo.qrunch.io/entries/YNUL9U… #qrunch
2020-06-07 03:24:31SudachiをElasticsearch6.1.1で使用する手順(非公式) qiita.com/matsuda_vla/it… #Qiita
2020-06-09 18:29:28ES6系入れようとも思ったんだが、なんかaptで7系入れてから6系にすると色々残るようでエラー吐く。面倒だしどうせ将来的に対応するだろうから7.8入れて放置で。
2020-06-23 03:34:49wget -qO - artifacts.elastic.co/GPG-KEY-elasti… | sudo apt-key add - sudo apt install apt-transport-https echo "deb artifacts.elastic.co/packages/7.x/a… stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list sudo apt update
2020-06-23 13:07:21sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///home/mastodon/analysis-sudachi-7.8.0-2.0.2.zip
2020-06-23 03:18:03