在Screen会话中取消设置会话超时时间

vi /etc/screenrc 

取消注释
shell -$SHELL

vi ~/.bash_profile

并在其中添加以下几行:

if [ "$STY" ]; then
   unset TMOUT
fi

或者设置为较长时间

if [ "$STY" ]; then
   export TMOUT=900
fi

猜你喜欢

转载自blog.csdn.net/allway2/article/details/107347547
今日推荐