linux 怎么查看是否连接到别的网址

zzxll5566 2011-12-07 10:55:43
问下各位,在linux下怎么查看是否能够连接到别的网址。
这个网址是个WSDL地址: http://192.168.1.1:9008/testwebservice?wsdl
这样的。ping 192.168.1.1可以ping得通。
用telnet 192.169.1.1 9008 无法连接上。
我想查看http://192.168.1.1:9008/testwebservice?wsdl这个网址在服务器上是否能连接得上。应该用什么命令啊。谢谢大家了。~~
...全文
820 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zzxll5566 2011-12-07
  • 打赏
  • 举报
回复
呵呵~用WGET命令可以。谢谢~
qq120848369 2011-12-07
  • 打赏
  • 举报
回复
linux-7lsl:/home/owenliang/csdn/src # netstat -tnlpa 
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 3224/rpcbind
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 4011/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 3252/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3423/master
tcp 0 0 127.0.0.1:2048 0.0.0.0:* LISTEN 8388/lighttpd
tcp 0 52 172.17.66.58:22 172.17.66.57:1465 ESTABLISHED 4014/3
tcp 0 0 :::111 :::* LISTEN 3224/rpcbind
tcp 0 0 :::22 :::* LISTEN 4011/sshd
tcp 0 0 ::1:631 :::* LISTEN 3252/cupsd
tcp 0 0 ::1:25 :::* LISTEN 3423/master
linux-7lsl:/home/owenliang/csdn/src # curl 127.0.0.1:2048/index.html

<html>
<body>

<form ACTION="/main.cgi">
<P>input m & n please
<INPUT NAME="m" SIZE="5">
<INPUT NAME="n" SIZE="5"><BR>
<INPUT TYPE="SUBMIT" values="提交">
</form>

</body>

</html>
askandstudy 2011-12-07
  • 打赏
  • 举报
回复
wget呢
freetstar 2011-12-07
  • 打赏
  • 举报
回复
netstat -antlp|greo 192.168.1.1

查看是否有链接存在

23,125

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧