Show newer
王小美 boosted
王小美 boosted
王小美 boosted
王小美 boosted

请问一下有没有用银联卡绑定了Scaleway的朋友~提交的时候显示Error: card_token - required key not provided 只有我一个人吗?

我发现这个四栏的版式才真的是Mastodon的精髓 :ac_classic01:

你在用长毛象的高级Web界面吗?
Are u using Mastodon's advanced web interface?

王小美 boosted
王小美 boosted

服务器状态监控~
Zabbix + Grafana

目前只做了 Elasticsearch 监控,还想做 Sidekiq 监控,但是 Zabbix 上配置比较繁琐,想直接换成 Prometheus,我再研究一下 :ak_working_005:

status.2heng.xin/d/DW-yYJ7Mk/m

王小美 boosted

所以最近这个肖战是啥。有没有相关文章一读就懂的 :brimi1:

王小美 boosted

阻止ssh自动断开(重发)

cd /etc/ssh

grep ClientAlive sshd_config

cp sshd_config sshd_config.bak
sed -i "s/#ClientAliveInterval 0/ClientAliveInterval 60/g" sshd_config

sed -i "s/#ClientAliveCountMax 3/ClientAliveCountMax 3/g" sshd_config

grep ClientAlive sshd_config

diff sshd_config sshd_config.bak

service sshd reload

再补上一条@literalkernel:

sed -i '/^PasswordAuthentication/c PasswordAuthentication yes' ${SSHD_CONFIG}

nohup的使用(重发)

$ nohup my_command > my.log 2>&1 &
$ echo $! > save_pid.txt

fg命令(Re-enter interactive mode after Ctrl-z)

fg [jobspec]
Resume jobspec in the foreground, and make
it the current job. If jobspec is not
present, the shell’s notion of the current
job is used. The return value is that of
the command placed into the foreground, or
failure if run when job control is dis-
abled or, when run with job control
enabled, if jobspec does not specify a
valid job or jobspec specifies a job that
was started without job control.

发现一个比较难受的问题,填加了标签的嘟文,如果可见范围没有设置成完全公开,那么你就不能在该标签的列表中看到它。

本来我的想法是通过标签可以把嘟文做成类似专栏的形式来记笔记,同时笔记设置为不公开,以避免在公共事件线上打扰到大家。看来现在还是得把笔记设置成公开了 :ac_classic22:

王小美 boosted

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

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

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

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

nohup的使用

$ nohup my_command > my.log 2>&1 &
$ echo $! > save_pid.txt

Show older
小森林

每个人都有属于自己的一片森林,也许我们从来不曾走过,但它一直在那里,总会在那里。迷失的人迷失了,相逢的人会再相逢。愿这里,成为属于你的小森林。