CentOS7中Xvfb的安装使用,docker无头爬去网页

 安装Xvfb

yum install Xvfb

运行

export DISPLAY=':99.0';Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
原文地址:https://www.cnblogs.com/royfans/p/15223871.html