黑马程序员技术交流社区

标题: linux [打印本页]

作者: tfy    时间: 2012-11-30 22:58
标题: linux
--17:56:17--  http://localhost/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27 [text/html]
Saving to: `index.html'

100%[=================================================================>] 27          --.-K/s   in 0.002s

17:56:17 (15.4 KB/s) - `index.html' saved [27/27]

[root@localhost ~]# wget http://localhost:8090
--17:56:24--  http://localhost:8090/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8090... failed: Connection refused.
[root@localhost ~]# wget http://localhost
一个端口被拒绝了
作者: swolice    时间: 2013-8-21 14:38
实在不知楼主是想表达啥,证明8090端口不通吗?或者是其他什么原因。其实不用wget也可以测试端口通否,linux下同样有windows下的一个命令telnet测试端口通否。





欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2