阅读背景:

wkhtmltopdf: cannot connect to X server

来源:互联网 

环境ubuntu 16.04 

apt-get install wkhtmltopdf

apt-get install xvfb echo -e '#!/bin/bash\nxvfb-run -a --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf -q $*' > /usr/bin/wkhtmltopdf.sh chmod a+x /usr/bin/wkhtmltopdf.sh ln -s /usr/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf apt-get


你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: