- 服务器上面下载chrome

2.执行命令
google-chrome-stable --headless --disable-gpu --screenshot --window-size=1280,1696 http://www.baidu.com --no-sandbox
-
可以看到保存的图像
screenshot.png
2.执行命令
google-chrome-stable --headless --disable-gpu --screenshot --window-size=1280,1696 http://www.baidu.com --no-sandbox
可以看到保存的图像
本文标题:centos服务器下面使用chrome headless
本文链接:https://www.haomeiwen.com/subject/dfgqzxtx.html
网友评论