Nginx
access_log on doesn't do what you'd think (as you'd think, the same for error_log on )Forwarded from taoky 的日常记事本
ubuntu@web:/usr/share/nginx$ ls -l
total 15266
drwxr-xr-x 2 root root 3 Sep 10 22:55 html
lrwxrwxrwx 1 root root 23 Nov 7 2018 modules -> ../../lib/nginx/modules
drwxr-xr-x 2 root root 7 Sep 10 22:55 modules-available
-rw-r--r-- 1 www-data root 471448 Oct 24 21:55 off
-rw-r--r-- 1 www-data root 15060172 Oct 24 22:30 on
InfluxDB sucks a lot of RAM with just a few telegraf clients. Had to move up to a 2 GB instance just for that sucker DB.
Forwarded from taoky 的日常记事本
systemd 好糟糕啊……这是我刚刚经历的一个故事:
- 我需要在某服务器上配置网站后端的守护进程。我打算用 systemd 的 user unit 来做。这台服务器的设置是密钥登录为 root,然后 tmux 之后 `su - userxxx`。userxxx 没有 sudo 的权限。
- 我加了这个 unit,然后
- 我搜了一下,在
- 我又搜了一下,发现
- 花了半个小时搜解决方案。
- 内心受到了打击,决定换成 supervisord 来干这件事情。
- 我需要在某服务器上配置网站后端的守护进程。我打算用 systemd 的 user unit 来做。这台服务器的设置是密钥登录为 root,然后 tmux 之后 `su - userxxx`。userxxx 没有 sudo 的权限。
- 我加了这个 unit,然后
systemctl --user 失败,提示 Failed to connect to bus: Permission denied- 我搜了一下,在
.bashrc 里面加了 export XDG_RUNTIME_DIR="/run/user/$UID"`,结果错误变成了 `Failed to connect to bus: No such file or directory- 我又搜了一下,发现
su - userxxx 不会创建新的 user session,`loginctl` 没有显示,从而没有新建 /run/user/$UID 的 tmpfs 的挂载。- 花了半个小时搜解决方案。
- 内心受到了打击,决定换成 supervisord 来干这件事情。
getent passwd doesn't sort entries by UID, could be a trick to the less carefulThis license does not include the right to compile photos from Unsplash to replicate a similar or competing service.
https://unsplash.com/license
https://unsplash.com/license
Unsplash
License | Unsplash
All images published on Unsplash can be used for free. You can use them for commercial and noncommercial purposes. You do not need to ask permission from or provide credit to the photographer or Unsplash, although it is appreciated when possible.
https://zh.wikipedia.org/wiki/%E5%90%88%E7%B4%84%E6%A9%8B%E7%89%8C
因此在 3♥ 这个叫品之后,不能叫 2♠ 或 3♣ ,但可以叫 3NT(没有特朗普) 或 4♦ 。
因此在 3♥ 这个叫品之后,不能叫 2♠ 或 3♣ ,但可以叫 3NT(没有特朗普) 或 4♦ 。
Wikipedia
合約橋牌
紙牌遊戲
Too bad Cloudflare doesn't offer their global PoP with Pro plan ($20/mo), but only Business ($200/mo) and Enterprise. But the satisfaction is, CF's free plan offers almost everything you need for a secure and fast website.
Every 18 months the smoothness of experience of using iPhones reduces by half.
A Linux user never does the same thing more than thrice - after doing it the 3rd time they must have automated it 😂
Forwarded from zzh 的日常记事本
$ python3.8 -q
>>> pow(233, -1, 2333)
1552
>>> 233 * 1552 % 2333
1
How ridiculous that
systemd-networkd ignores one whole file when there's one single misconfigured line or section...