Phantomjs loads pages slowly

前端 未结 2 1207
别跟我提以往
别跟我提以往 2021-01-31 11:18

I\'m new into phantomjs, trying it on a standard centOS server (with httpd etc installed, but no modified settings apart from nameservers set to 8.8.8.8 and 8.8.4.4).

I\

2条回答
  •  不知归路
    2021-01-31 11:42

    Found it - seems like ipv6 was the culprit.

    I disabled it temporarily by running the following:

    echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6 
    echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6
    

    Testing confirms:

    $ phantomjs phantomjs.js http://google.com
    starting
    Loading time 230 msec
    

提交回复
热议问题