![如何查找哪一个端口是glassfish域的实际端口号?](https://linux22.com/image/788103/%E5%A6%82%E4%BD%95%E6%9F%A5%E6%89%BE%E5%93%AA%E4%B8%80%E4%B8%AA%E7%AB%AF%E5%8F%A3%E6%98%AFglassfish%E5%9F%9F%E7%9A%84%E5%AE%9E%E9%99%85%E7%AB%AF%E5%8F%A3%E5%8F%B7%EF%BC%9F.png)
<network-listeners>
<network-listener protocol="http-listener-1" port="8080" name="http-listener-1" thread-pool="http-thread-pool" transport="tcp"></network-listener>
<network-listener protocol="http-listener-2" port="8181" name="http-listener-2" thread-pool="http-thread-pool" transport="tcp"></network-listener>
<network-listener protocol="pu-protocol" port="4848" name="admin-listener" thread-pool="admin-thread-pool" transport="tcp"></network-listener>
</network-listeners>
https://docs.oracle.com/cd/E19879-01/821-0177/fxxov/index.html
根据此文档,我需要查看 http-listener 端口值。但是 http-listener 有两个值。
同样,实际上glassfish管理员从“ip地址:4848”运行
我需要使用此命令更改密码,但我不确定域的端口号是多少。
asadmin --port 5048 enable-secure-admin
答案1
要更改密码,请更改管理端口的密码,即以 48 结尾的密码。