vi /etc/screenrc
取消注释
shell -$SHELL
vi ~/.bash_profile
并在其中添加以下几行:
if [ "$STY" ]; then
unset TMOUT
fi
或者设置为较长时间
if [ "$STY" ]; then
export TMOUT=900
fi
vi /etc/screenrc
取消注释
shell -$SHELL
vi ~/.bash_profile
并在其中添加以下几行:
if [ "$STY" ]; then
unset TMOUT
fi
或者设置为较长时间
if [ "$STY" ]; then
export TMOUT=900
fi