logmr.com

日志先生-记录有趣的事

如何在Mac上测试远程端口是否打开

如果你经常用Windows作为开发环境,对telnet应该不陌生,可以用它来测试远程的服务端口是否打开,但是在Mac上telnet是不可用的,应该怎么做呢?

可以用NetCat,已经内置在Mac操作系统里了,如下

 nc -zv localhost 8787 

如果有如下的反馈

Connection to localhost port 8787 [tcp/msgsrvr] succeeded!

说明8787端口是可用的,可以用Eclipse来调试了。


Posted

in

by

Tags:

Comments

3 responses to “如何在Mac上测试远程端口是否打开”

  1. https://ai-generated-porn.com/pics-silicon-tits Avatar

    Hmmm iis anyone else experiewncing problems with thhe pictures on this blog loading?
    I’m trying tto fihd oout if its a problem on myy endd or iff
    it’s the blog. Any feed-back would bee greatly appreciated.

  2. Aaron Willis Avatar

    I have been surfing online greater than 3 hours these days, yet I never found
    any attention-grabbing article like yours. It’s pretty worth enough for me.
    In my view, if all web owners and bloggers made just right content as you probably did, the web will be a lot more useful than ever before.

  3. Richard Ruiz Avatar

    It is appropriate time to make a few plans for the future and it’s time to be happy.
    I’ve learn this publish and if I could I
    desire to counsel you some interesting issues or tips.
    Maybe you can write next articles relating to this article.

    I wish to read more things approximately it!

Leave a Reply

Your email address will not be published. Required fields are marked *