修改 vSphere Client 会话超时时限
请访问原文链接:sysin.org/blog/vmware…,查看最新版。原创作品,转载请保留出处。
作者主页:sysin.org
vSphere Client 中会话每 120 分钟自动超时,然后必须重新登录到 vSphere Client。
适用于 vSphere 8.0 和 vSphere 7.0,旧版请参看官方 KB:https://kb.vmware.com/s/article/2040626。
通过 vSphere Client 配置
浏览到 Administration - Deployment - Client Configuration,点击 Edit,默认值为 120 分钟。
如果需要将会话时间设置为永不超时(不推荐),即设置为 0,此界面不支持,需要登录 Shell 编辑配置文件。
通过 Shell 配置
1、SSH 登录到 vCenter Server Apliance。
2、登录 BASH,执行命令:
shell
3、查看配置文件:
cat /etc/vmware/vsphere-ui/webclient.properties | grep session.timeout
默认 “session.timeout = 120”。
4、创建一个配置文件的备份(可选):
cp /etc/vmware/vsphere-ui/webclient.properties /etc/vmware/vsphere-ui/webclient.properties.bak
5、编辑配置文件:
vi /etc/vmware/vsphere-ui/webclient.properties
修改如下内容: session.timeout = *value (默认120,单位分钟)
例如:session.timeout = 0 表示会话不过期。
例如:session.timeout = 10080 表示 7 天。
6、重启服务后生效:
service-control --stop vsphere-ui
service-control --start vsphere-ui
本站定制镜像: