我在Centos 7平台下载了最新版的chromedriver:https://chromedriver.storage.googleapis.com/index.html?path=74.0.3729.6/ 我启动 chromedriver 并收到此错误。
错误:
Starting ChromeDriver 74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}) on port 9515
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1556179366.141][SEVERE]: bind() failed: Cannot assign requested address (99)
我该如何解决这个问题?
最佳答案
在我的例子中,使用 --verbose
标志运行 chromedriver
有助于找出问题:
[1564749154.010][SEVERE]: bind() failed: Cannot assign requested address (99)
[1564749154.011][INFO]: listen on IPv6 failed with error ERR_ADDRESS_INVALID
Chrome 尝试监听 IPv6 地址,这在 Docker 中未启用。您可以 enable IPv6支持(仅适用于 Linux 主机)或忽略错误,因为 chromedriver
进程无论如何都会监听 IPv4。
关于linux - 启动 chromedriver 时如何修复 "[SEVERE]: bind() failed: Cannot assign requested address (99)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55844788/