在Mac上启动chromedriver报错IPv4 port not available. Exiting...,不知如何解决(详情错误见描述)

Starting ChromeDriver 80.0.3987.16 (320f6526c1632ad4f205ebce69b99a062ed78647-refs/branch-heads/3987@{#185}) on port 9515

Only local connections are allowed.

Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.

[1585824197.294][SEVERE]: bind() failed: Address already in use (48)

IPv4 port not available. Exiting…

注意格式哈

作为测试人员的基本操作。。还是要把问题描述清楚啊 最起码你得要让别人能够知道你的操作并且复现这个问题才好找到解决办法吧。建议补充一下详细内容,按照要求格式来写一下吧 并不是说为了格式 而是为了让别人能获得解决问题的基本信息~

谢谢提醒!
问题描述:在Mac上配置chromdriver环境变量,配置完成后,在终端上输入“chromdriver”命令验证chromdriver环境变量是否配置正确,多次检查后确认没有其他问题,还是出现以下错误信息:

Starting ChromeDriver 80.0.3987.16 (320f6526c1632ad4f205ebce69b99a062ed78647-refs/branch-heads/3987@{#185}) on port 9515
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1585824197.294][SEVERE]: bind() failed: Address already in use (48)
IPv4 port not available. Exiting…

导致原因:之前chromdriver启动后有异常退出。
解决办法:杀掉chromdriver启动进程(或者重启电脑)