【发布时间】:2017-05-08 03:50:45
【问题描述】:
我已经在 Microsoft Azure 中创建了 Red Hat VM,并且能够通过 ssh 进行连接。
我已经在 VM 中使用端口 8081 启动了 Java 服务器,并且它启动成功。但我无法在浏览器中查看它。它没有被加载。
我尝试了以下方法,但都没有加载:-
host:80
host:8080
host:8081
我在网络安全组中添加了入站安全规则,并为其关联了子网。我仍然无法在浏览器中查看我的服务器。
我已遵循此document 的入站安全规则
netstat -tuplen
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 127.0.0.1:29131 0.0.0.0:* LISTEN 0 20864 -
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 13894 -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 18132 -
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 994 19499 -
tcp6 0 0 :::111 :::* LISTEN 0 13893 -
tcp6 0 0 :::8081 :::* LISTEN 1000 28721 3212/java
tcp6 0 0 :::22 :::* LISTEN 0 18143 -
tcp6 0 0 :::9080 :::* LISTEN 1000 28547 3212/java
udp 0 0 0.0.0.0:68 0.0.0.0:* 0 16585 -
udp 0 0 0.0.0.0:111 0.0.0.0:* 0 23825 -
udp 0 0 127.0.0.1:323 0.0.0.0:* 995 15601 -
udp 0 0 0.0.0.0:45876 0.0.0.0:* 0 16574 -
udp 0 0 0.0.0.0:893 0.0.0.0:* 0 23826 -
udp6 0 0 :::57126 :::* 0 16575 -
udp6 0 0 :::111 :::* 0 23827 -
udp6 0 0 ::1:323 :::* 995 15602 -
udp6 0 0 :::893 :::* 0 23828 -
ss -tln
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 10 127.0.0.1:29131 *:*
LISTEN 0 128 *:111 *:*
LISTEN 0 128 *:22 *:*
LISTEN 0 128 127.0.0.1:27017 *:*
LISTEN 0 128 :::111 :::*
LISTEN 0 50 :::8081 :::*
LISTEN 0 128 :::22 :::*
LISTEN 0 50 :::9080 :::*
【问题讨论】:
标签: java http azure virtual-machine port