1. 安装vnc
https://blog.csdn.net/renfeigui0/article/details/100075145
2. 安装wkhtmltox
https://www.jianshu.com/p/d952d837af0e
获取: wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
测试使用:
wkhtmltoimage --width 1280 --height 1600 --javascript-delay 10000 --enable-plugins http://www.baidu.com ./test.png
(图片必须加上宽高)
wkhtmltopdf http://www.baidu.com ./test.pdf 转成pdf
3. tomcat启动并打印启动日志
./startup.sh && tail -f ../logs/catalina.out