fanyong920 / jvppeteer

Headless Chrome For Java (Java 爬虫)
Apache License 2.0
705 stars 158 forks source link

在linux运行的时候报错 #107

Closed chengang123 closed 2 years ago

chengang123 commented 2 years ago

在linux运行的时候报错,应该是浏览器的版本不对吗? Caused by: com.ruiyun.jvppeteer.exception.TimeoutException: Timed out after 30000 ms while trying to connect to the browser!Chrome output: /www/wwwroot/server/wenshu/.local-browser/linux-722234/chrome-linux/chrome: error while loading shared libraries: libXtst.so.6: cannot open shared object file: No such file or directory

sagexueqi commented 2 years ago

在linux运行的时候报错,应该是浏览器的版本不对吗? Caused by: com.ruiyun.jvppeteer.exception.TimeoutException: Timed out after 30000 ms while trying to connect to the browser!Chrome output: /www/wwwroot/server/wenshu/.local-browser/linux-722234/chrome-linux/chrome: error while loading shared libraries: libXtst.so.6: cannot open shared object file: No such file or directory

运行在linux server时,需要安装chrome所需要的相关依赖 参考:apt install libx11-dev libxext-dev libxtst-dev libxrender-dev libxmu-dev libxmuu-dev