开张:把博客搭在自己的服务器上
折腾了一个晚上,博客终于在自己的服务器上开张了。
域名 jbjflab.top 指向一台香港的小机器,Nginx 托管静态页面,HTTPS 证书由 Let's Encrypt 自动签发、自动续期。没有用任何博客平台——就是一个干净的 HTML 目录,快、简单,也不会被平台的规则牵着走。
为什么不用现成平台
原因很朴素:想完全控制自己的内容。文章、样式、备份、迁移,全都自己做主。顺便把建站这件事从头到尾走一遍,比看十篇教程都值。
这里会写什么
- 折腾服务器和工具时的记录,踩过的坑尽量写清楚;
- 读书、学习和工作里的一些想法;
- 一些还没做完的小项目——做好了会放到 Git 上。
内容放在自己的目录里,备份就是
tar一下;换服务器只需要搬目录、改解析,不欠任何平台的人情。
第一篇文章就先到这里。愿这块自留地能一直写下去。
After one evening of tinkering, this blog is finally live on my own server.
The domain jbjflab.top points to a small machine in Hong Kong. Nginx serves the static pages, and the HTTPS certificate is issued and renewed automatically by Let's Encrypt. There is no blogging platform — just a clean HTML directory: fast, simple, and not subject to anyone else's rules.
Why not an existing platform
The reason is simple: I want full control over my content. Articles, styling, backups, migrations — all up to me. And walking through the entire process of building a site is worth more than reading ten tutorials.
What will be here
- Notes from tinkering with servers and tools, with the pitfalls written down as clearly as possible;
- Some thoughts from reading, learning, and work;
- Small projects that aren't finished yet — once done, they'll go to Git.
The content lives in my own directory, so a backup is just a
tar; moving to another server only takes copying the directory and updating DNS — no favours owed to any platform.
The first post ends here. May this corner of the internet keep being written in.