修改/etc/profile配置文件 # vi /etc/profile 增加:export TMOUT=180 这样3分钟没操作就自动LOGOUT 转载于:https://blog.51cto.com/1130518/830478