借助此 Jython 脚本,您可以在 WebSphere Application Server 中自动完成常见管理任务和配置安全性。
开始之前
在运行
clm_was_config.py 之前,请确保已安装 WebSphere Application Server,已创建概要文件,并且服务器已启动。
关于此任务
Jython 脚本
clm_was_config.py 将执行下列任务:
在集群环境中,更新下列设置:
- 指定下列 ORB(对象请求代理)设置:
- 请求超时 = 30
- 连接高速缓存最大值 = 1024
- 连接高速缓存最小值 = 1024
- 查找请求超时 = 30
- 按引用传递 (noLocalCopies) = true
- 添加下列 ORB 定制属性:
- 名称:com.ibm.CORBA.ConnectionMultiplicity 值:1
- 名称:com.ibm.CORBA.ConnectTimeout 值:10
- 名称:com.ibm.CORBA.FragmentSize 值:0
- 名称:com.ibm.CORBA.FragmentTimeout 值:30
- 名称:com.ibm.CORBA.NoLocalInterceptors 值:true
- 名称:com.ibm.CORBA.ServerSocketQueueDepth 值:1024
- 指定下列线程池设置:
- 最小大小 = 256
- 最大大小 = 256
- 允许线程分配超过最大线程大小 = false
过程
- 要设置 WebSphere Application Server,打开命令窗口,并将目录切换至 WASInstallDir/AppServer/bin。
- 在将 WAS_username 替换为 WebSphere Application Server admin 用户名、将 WAS_password 替换为 admin 用户密码、将 path to the script 替换为脚本位置(例如,C:/JazzTeamServer/server/was/clm_was_config.py,请注意,在 Windows 平台上使用的是正斜杠)并将 JazzInstallDir/server/conf 替换为 Jazz Team Server 安装配置目录的情况下输入以下命令。为了避免发生问题,请勿在路径中使用空格。对于具有空格的路径,可以使用双引号。
./wsadmin.sh -language jython -user WAS_username -password WAS_password -f Path to the script/clm_was_config.py JazzInstallDir/server/conf
注: 您必须对安装配置和脚本目录的路径使用正斜杠。例如,C:/Progra~1/IBM/JazzTeamServer/server/conf
wsadmin.bat -language jython -user WAS_username -password WAS_password -f Path to the script/clm_was_config.py JazzInstallDir/server/conf