在跑程序的时候,每次跑了一个小时,去查看结果的时候,发现Uos系统自带的Terminal终端自动退出了,就特别难受,后面一查,发现是
etc/profile,里面有个export TMOUT=900,
这个会导致终端15分钟没输入时,自动退出
解决方案:
su root
vi /etc/profile
注释tty | egrep -q tty[1-6] && export TMOUT=900
#tty | egrep -q tty[1-6] && export TMOUT=900
然后就不会自动杀死终端了