Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3756

Support check-port-availability script for mac os x

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v3.0.0
    • Component/s: Tools, Build and Test
    • Labels:
      None

      Description

      bin/check-port-availability.sh internally uses "netstat -tlpn" to detect network ports. Running this script under mac os x will report the following exception:

      netstat: n: unknown or uninstrumented protocol

      The "netstat" command under mac os x does not support the "n,p" option. We can achieve the same function under mac with the "lsof" command. More details: https://stackoverflow.com/questions/4421633/who-is-listening-on-a-given-tcp-port-on-mac-os-x

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yanghua vinoyang
                Reporter:
                yanghua vinoyang
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: