我在ec2实例上测试WSO2服务器。当我启动服务器时,我可以通过在浏览器上键入https://ip:9443/carbon
来访问管理控制台。然后我将repository/conf/carbon.xml
编辑为<offset>10</offset>
,然后启动服务器,以下是日志,
[2015-03-16 09:31:37,354] INFO - JMXServerManager JMX Service URL : service:jmx:rmi://localhost:11121/jndi/rmi://localhost:10009/jmxrmi
[2015-03-16 09:31:37,354] INFO - StartupFinalizerServiceComponent Server : WSO2 API Manager-1.8.0
[2015-03-16 09:31:37,355] INFO - StartupFinalizerServiceComponent WSO2 Carbon started in 89 sec
[2015-03-16 09:31:38,850] INFO - CarbonUIServiceComponent Mgt Console URL : https://172.31.x.x:9453/carbon/
[2015-03-16 09:31:38,851] INFO - CarbonUIServiceComponent API Publisher Default Context : http://172.31.x.x:9773/publisher
[2015-03-16 09:31:38,851] INFO - CarbonUIServiceComponent API Store Default Context : http://172.31.x.x:9773/store
[2015-03-16 09:31:39,081] INFO - APIKeyMgtServiceComponent Setting default carbon host for thrift key management service: 172.31.x.x
[2015-03-16 09:31:39,110] INFO - APIKeyMgtServiceComponent Started thrift key mgt service at port:10397
然后我尝试使用我之前尝试的相同网址,但端口为9453,但它没有加载管理控制台。并且没有找到日志。我使用WSO2ESB
和WSO2AM
尝试了相同的方案,两者的结果相同。
更新: 当我搜索开放端口时,它提供以下内容,
ubuntu@ip-172-31-x-x:~$ netstat -nltp | grep LISTEN | grep 94
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp6 0 0 :::9443 :::* LISTEN 14076/java
tcp6 0 0 :::9453 :::* LISTEN 14448/java
答案 0 :(得分:1)
即使端口在实例内打开,您也必须允许外部(在本例中为您的浏览器)访问该特定端口。您可以通过AWS控制台中该特定EC2实例的安全组来配置它。