1.命令:
xvfb-run --server-args="-screen 0, 1920x1080x24" CutyCapt --url=http://erp.dev.com/publics/login --out=phpsong.jpg
需要安装 xvfb CutyCapt
yum install Xvfb
yum install CutyCapt
1.保存为图片后汉字乱码解决: yum install cjkuni-ukai-fonts cjkuni-uming-fonts -y
2.运行命令后报错:dbus-uuidgen >/var/lib/dbus/machine-id
process 12894: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
D-Bus not built with -rdynamic so unable to print a backtrace
/usr/bin/xvfb-run: line 181: 12894 Aborted DISPLAY=:$SERVERNUM XAUTHORITY=$AUTHFILE "$@" 2>&1