今天如往日一樣登錄開發機開始新一天的coding ,(linux 下 vim 開發)
因有開發環境,staging 環境,數據庫環境,redis 環境等等。。所以使用 tmux 進行管理。
輸入 tmux :
尼瑪,我的session 呢。難道系統又把我的tmux 給殺掉了?
腦袋靈光一閃,昨天我把/tmp 目錄給清理了,因為里面有太多辣雞文件。可能和這個有關。
看了下我的tmux 進程:
當時的session 還活着呢呀,不太懂了。
google 一把吧。
Sending an SIGUSR1
signal to the tmux
process recreases the socket file, allowing you to reattach using tmux attach
afterwards.
$ sudo kill -SIGUSR1 21711 $ tmux attach
就可以了。具體的原因是:
請看下面文章:
https://rubenvarela.com/guides/recovering-tmux-when-its-socket-was-deleted/