问题 Linux上远程登录,默认10分钟没操作会自动退出,原因是默认的TMOUT设置为600,即10分钟 使用 echo $TMOUT 查看 解决方案 在/etc/profile 中设置 TMOUT=0 进入profile vi /etc/profile 底部添加设置 export TMOUT=0 wq 保存 立即生效 source /etc/profile