iBug Thought �
1.15K subscribers
1.99K photos
29 videos
31 files
1.59K links
iBug's random thoughts

Website: https://ibug.io

Private channel:
https://t.me/+ju8PlLfwy0o4NWJl
(Admission will be entirely based on iBug's personal preference)
Download Telegram
WordPress content is located at wp-content , not wp_content .
Moved away from LVM to ZFS :)
Not to say but, ZFS is really a better LVM than LVM itself!
RHEL sucks. udev created a wrong node for /dev/zfs , which confused me for 3 hours.
Must restart cron (or reboot server) after changing time zone, or cron will continue to run jobs at the time defined in the old time zone.
For example, the parent category "Twitter" and "Facebook" may be "overseas reactionary websites" 😂
TabNine makes me ridiculously productive
Why does uptime go straight up in Grafana? (Oh sorry I mistook it for load ) (😂)
My first Grafana dashboard is up! Guess the URL by yourself :)
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,然后 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 来干这件事情。
Correct solution
getent passwd doesn't sort entries by UID, could be a trick to the less careful
What cretins decided that "blog" isn't allowed on personal websites...