解决sessions should be nested with care, unset $TMUX to force错误

参考:https://blog.csdn.net/blackmanren/article/details/48243671
问题出现的背景:

  1. 在putty里起了一个tmux的session

  2. 在这个session里执行了命令vncserver来创建一个vnc

  3. 登录到创建好的vnc之后,打开terminal,执行tmux attach命令,想把在putty里的session在vnc里显示出来

这时候就会报错:sessions should be nested with care, unset $TMUX to force

问题的解决:

在vnc里的terminal里执行: unset TMUX,然后再执行tmux attach就可以了

猜你喜欢

转载自blog.csdn.net/qq_21237549/article/details/130627529