我今天不得不重新启动我的盒子。我有几个程序在 tmux session 中运行。他们好像还活着,我怎么才能重新依附在他们身上?
我试过 tmux a processID
但它没有用。
/home/me 21$ ps aux | grep tmux
me 1299 0.0 0.0 22244 1920 ? Ss Apr28 0:40 tmux -2 -f /tmp/r-plugin-me/tmux.conf new-session -s vimrpluginme1398670569alnn51oynp1vollnn51f2v4r_ied_delta1meRalphaCalibr VIMINSTANCEID=alnn51oynp1vollnn51f2v4r_ied_delta1meRal
me 2575 0.0 0.0 54164 3500 ? S 07:35 0:00 xterm -e tmux -2 -f /home/me/.tmux.conf -S /tmp/vX0qRrR/78
me 2577 0.0 0.0 19892 1400 pts/2 Ss+ 07:35 0:00 tmux -2 -f /home/me/.tmux.conf -S /tmp/vX0qRrR/78
me 2579 0.0 0.0 22128 1832 ? Ss 07:35 0:00 tmux -2 -f /home/me/.tmux.conf -S /tmp/vX0qRrR/78
me 5155 0.0 0.0 6380 756 pts/4 S+ 07:46 0:00 grep tmux
me 31340 0.0 0.0 23348 3000 ? Ss Apr28 0:17 tmux -2 -f /home/me/.tmux.conf -S /tmp/vIqEM06/78
最佳答案
您不能重新附加进程 ID。您需要重新附加相应的tmux
session 。
也是如此tmux ls
.选择要重新附加的任何 session 。然后做tmux attach -d -t <session id>
将它重新附加到一个新的 tmux 实例并从旧的实例中释放它。
关于tmux - 如何重新附加到 tmux 进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23403368/