针对所有用户针对特定用户(如针对user_1) 针对所有用户vi /etc/profileexport TMOUT=900 # 设置闲置时间为15分钟,单位为秒;如果没有此行则直接添加进去##wq保存退出source /etc/profile 针对特定用户(如针对user_1)cd /home/user_1/vi .bash_profileexport TMOUT=900##wq保存退出source .bash_profile