Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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
- is blocked by
-
KYLIN-3864 Provide a function to judge whether the os type is Mac os x or not
- Closed
- links to