托管实例的WLST编辑模式问题

2024-05-10 13:04:23 发布

您现在位置:Python中文网/ 问答频道 /正文

当我执行连接到托管实例的edit()命令时,出现了以下错误。如何解决这个问题。在

wls:/offline> connect('Admin60000','sun1rise','t3://my-comm-app-serv:60001')
Connecting to t3://my-comm-app-serv:60001 with userid Admin60000 ...
Successfully connected to managed Server "MiCommApp" that belongs to domain "MiBeaDir".

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.

wls:/MiBeaDir/serverConfig>cd('/Servers/MiCommApp/SSL/MiCommApp')
wls:/MiBeaDir/serverConfig/Servers/MiCommApp/SSL/MiCommApp> edit()
Edit MBeanServer is not enabled on a Managed Server.

60001是托管实例端口,它是在管理服务器中运行的托管实例之一。管理服务器在60000端口上运行


Tags: theto实例appsslmyconnectedit
1条回答
网友
1楼 · 发布于 2024-05-10 13:04:23

这是因为对于托管服务器,WLST功能仅限于浏览配置bean层次结构。阅读下面的节选WL official documentation。在

To edit configuration beans, you must be connected to an Administration Server, and you must navigate to the edit tree and start an edit session, as described in edit and startEdit, respectively.

If you connect to a Managed Server, WLST functionality is limited to browsing the configuration bean hierarchy. While you cannot use WLST to change the values of MBeans on Managed Servers, it is possible to use the Management APIs to do so. BEA Systems recommends that you change only the values of configuration MBeans on the Administration Server. Changing the values of MBeans on Managed Servers can lead to an inconsistent domain configuration.

因此,基本上您需要连接到您的管理服务器(根据您提供的日志-Successfully connected to managed Server "MiCommApp" that belongs to domain "MiBeaDir".),然后使用edit()startEdit()WLST命令发出编辑配置。在


顺便说一句,我使用以下命令连接到我的服务器:

  • 如果HTTPS-connect(url='t3s://abc.xyz.com:37001',adminServerName='AdminServer')
  • 如果HTTP-connect(url='t3://abc.xyz.com:37001',adminServerName='AdminServer')

相关问题 更多 >