美文网首页
centos服务器下面使用chrome headless

centos服务器下面使用chrome headless

作者: heliping_peter | 来源:发表于2018-01-30 11:03 被阅读12次
    1. 服务器上面下载chrome
    image.png

    2.执行命令

    google-chrome-stable --headless --disable-gpu --screenshot --window-size=1280,1696 http://www.baidu.com --no-sandbox
    
    1. 可以看到保存的图像


      screenshot.png

    相关文章

      网友评论

          本文标题:centos服务器下面使用chrome headless

          本文链接:https://www.haomeiwen.com/subject/dfgqzxtx.html