会话超时
-
如何设置Linux用户会话超时 TMOUT环境变量配置
设置linux用户会话超时主要通过tmout环境变量实现,全局设置修改/etc/profile或/etc/bash.bashrc添加export tmout=300;用户级别修改~/.bash_profile或~/.bashrc添加export tmout=600;临时设置直接输入export tm…
-
如何配置用户会话超时 TMOUT环境变量设置
配置用户会话超时主要通过设置tmout环境变量实现,1. 针对单个用户,在~/.bashrc中添加export tmout=300并执行source ~/.bashrc使其生效;2. 针对所有用户,推荐在/etc/profile.d/timeout.sh中设置export tmout=300并添加r…