feat: 增加Weblogic测试环境

This commit is contained in:
ZacharyZcR
2024-12-23 04:04:48 +08:00
parent 57b6d41737
commit 1a5f789ba8
7 changed files with 59 additions and 8 deletions
+26
View File
@@ -0,0 +1,26 @@
import os
# 读取模板
readTemplate("/u01/oracle/wlserver/common/templates/wls/wls.jar")
# 配置管理服务器
cd('/Security/base_domain/User/weblogic')
cmo.setPassword('weblogic123')
# 设置域名称和路径
cd('/')
cmo.setName('base_domain')
setOption('DomainName', 'base_domain')
setOption('ServerStartMode', 'dev')
setOption('OverwriteDomain', 'true')
# 配置管理服务器
cd('/Servers/AdminServer')
set('ListenAddress', '')
set('ListenPort', 7001)
# 写入域配置
writeDomain('/u01/oracle/user_projects/domains/base_domain')
closeTemplate()
exit()