解决 SSH 一段时间不操作断连的问题

3 weeks ago
0 comment

在 SSH 客户端配置中添加保活设置。

~/.ssh/config中添加:

Host *
  ServerAliveInterval 60
  ServerAliveCountMax 5
Text
  • ServerAliveInterval 60:每60秒向服务器发送一次心跳包。
  • ServerAliveCountMax 5:如果连续5次没有收到服务器响应,则断开连接。

然后重新登陆 SSH 就行。

设置 www-data 目录权限

3 weeks ago
0 comment
chown -R www-data:www-data /www-data
chmod -R 755 /www-data
Bash

Clash 科学上网问题排查

1 month ago
0 comment
  1. 操作系统时间不正确
  2. 开启了 IPv6
  3. 配置文件 DNS 相关配置有误

Typora 标题自动编号

1 month ago
0 comment

官方文档:https://support.typora.io/Auto-Numbering/

To achieve this, add the following to your base.user.css or [theme].user.css in the theme folder.

Nginx 反代配置

2 months ago
0 comment

就这样写,剩余的交给 certbot 来补全:

server {
  charset utf-8;
  server_name xxx.xxx;

  location / {
    proxy_pass http://localhost:8080;
    proxy_set_header X-Real-IP  $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_redirect default;
  }
}
nginx

TriNitroTofu

_(:з」∠)_

Recent Comments

果冻

在github上看到你的typecho的主题很不错,风格我很喜欢。

TriNitroTofu

哈哈哈你是第一个发现这个站的,这个站我主要就是自己写点笔记,不再有太多社交属性,主要也是比较忙吧。

Typecho 的 demo 站上次迁移服务器之后就没开起来了,毕竟确实没啥用。
英文 ...

Edoc Li

还有!ca的雪!!!

p.s.
December系统的评论表单可以改一下能记忆name和email字段吗qwq

Edoc Li

老师您的typecho demo和原英文blog是都不打理了吗qwq
今天和别人推荐老师的bubble主题发现ty站打不开了
然后急急忙忙跑到tofu.icu发现居然停更一年了!!(23年末开...