使用wlst.sh 修改server端口

本文介绍使用WebLogic Server的WLST管理命令行工具来修改服务的监听端口的方法。通过示例代码展示了如何连接到WebLogic服务器并更改mserver1实例的监听端口为7007。

环境 信息:

weblogic

wlst.sh管理命令行

修改一个服务的端口信息

代码处理:

wlst.sh

connect('weblogic','weblogic','t3://localhost:7001')
edit()
startEdit()
cd('Servers')
cd('mserver1')
set('ListenPort',7007)
save()
stopEdit()
activate()

 

 

[weblogic@hqtrtgscnyapp01 rtgscny_domain]$ ./bin/stopWebLogic.sh Stopping Weblogic Server... [0.005s][warning][cds] Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "com.oracle.classloader.weblogic.LaunchClassLoader"). To use archived non-system classes, this property must not be set Initializing WebLogic Scripting Tool (WLST) ... Welcome to WebLogic Server Administration Scripting Shell Type help() for help on available commands No stack trace available. Traceback (most recent call last): File "/opt/Oracle/Weblogic/fmw141200/user_projects/domains/rtgscny_domain/shutdown-AdminServer.py", line 3, in <module> connect( url='t3s://hqtrtgscnyapp01:9002', adminServerName='AdminServer') File "<iostream>", line 19, in connect File "<iostream>", line 586, in raiseWLSTException __main__.WLSTException: Error occurred while performing connect : "No valid username/password or userConfigFile/userKeyFile provided" Problem invoking WLST - Traceback (most recent call last): File "/opt/Oracle/Weblogic/fmw141200/user_projects/domains/rtgscny_domain/shutdown-AdminServer.py", line 3, in <module> connect( url='t3s://hqtrtgscnyapp01:9002', adminServerName='AdminServer') File "<iostream>", line 19, in connect File "<iostream>", line 586, in raiseWLSTException __main__.WLSTException: Error occurred while performing connect : "No valid username/password or userConfigFile/userKeyFile provided" Done Stopping Derby Server... Derby server stopped. shutDownStatus=1 解析报错
最新发布
07-11
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值