如何连接 Ubuntu 16 的 80 端口

如何连接 Ubuntu 16 的 80 端口

我正在使用 Ubuntu 16.04 作为服务器。

my@wwwui:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"

端口就这样开放了。

my@wwwui:~$ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
80                         ALLOW       Anywhere                  
22                         ALLOW       Anywhere                  
80 (v6)                    ALLOW       Anywhere (v6)             
22 (v6)                    ALLOW       Anywhere (v6)  

并且 apache 正确启动并获取 index.html。

my@wwwui:~$ wget localhost
--2017-08-11 22:13:29--  http://localhost/
Resolving localhost (localhost)... 127.0.0.1, ::1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11321 (11K) [text/html]
Saving to: ‘index.html.1’

index.html.1                                  100%[=================================================================================================>]  11.06K  --.-KB/s    in 0s      

2017-08-11 22:13:29 (175 MB/s) - ‘index.html.1’ saved [11321/11321]

但是我的本地计算机拒绝 telnet。

mylocal$ telnet jp.mine.jp 80
Trying 133.242.***.***...
telnet: connect to address 133.242.***.***: Connection refused
telnet: Unable to connect to remote host

有没有什么地方可以检查???

相关内容