Using username “terry”.
Last login: Sun Feb 16 21:46:27 2020 from 192.168.31.134
[terry@MiWiFi-R4AC-srv ~]$ su
密码:
[root@local terry]#
[root@local terry]# pwd
/home/terry
[root@local terry]# cd /usr/local/src/
[root@local src]# ls
wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
[root@local src]#
[root@local src]#
[root@local src]#
[root@local src]#
[root@local src]# tar xvfJ wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
wkhtmltox/
wkhtmltox/lib/
wkhtmltox/lib/libwkhtmltox.so.0.12.4
wkhtmltox/lib/libwkhtmltox.so.0
wkhtmltox/lib/libwkhtmltox.so.0.12
wkhtmltox/lib/libwkhtmltox.so
wkhtmltox/include/
wkhtmltox/include/wkhtmltox/
wkhtmltox/include/wkhtmltox/image.h
wkhtmltox/include/wkhtmltox/dllbegin.inc
wkhtmltox/include/wkhtmltox/pdf.h
wkhtmltox/include/wkhtmltox/dllend.inc
wkhtmltox/bin/
wkhtmltox/bin/wkhtmltoimage
wkhtmltox/bin/wkhtmltopdf
wkhtmltox/share/
wkhtmltox/share/man/
wkhtmltox/share/man/man1/
wkhtmltox/share/man/man1/wkhtmltopdf.1.gz
wkhtmltox/share/man/man1/wkhtmltoimage.1.gz
[root@local src]# ls
wkhtmltox wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
[root@local src]# cd wkhtmltox/bin
[root@local bin]# ls
wkhtmltoimage wkhtmltopdf
[root@local bin]# sudo mv ./wkhtmltopdf /usr/bin/wkhtmltopdf
[root@local bin]# sudo chmod +x /usr/bin/wkhtmltopdf
[root@local bin]#
[root@local bin]#
[root@local bin]# wkhtmltpdf
bash: wkhtmltpdf: 未找到命令
[root@local bin]# cd /usr/bin/
[root@local bin]# wkhtmltopdf
wkhtmltopdf: error while loading shared libraries: libXrender.so.1: cannot open
[root@local bin]#
[root@local bin]# error while loading shared libraries: libXrender.so.
[root@local bin]#
[root@local bin]# yum repolist
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
- base: mirror.bit.edu.cn
- extras: mirrors.cn99.com
- updates: mirrors.cn99.com
源标识
base/7/x86_64
extras/7/x86_64
packages-microsoft-com-prod
updates/7/x86_64
repolist: 12,343
[root@local bin]# yum repolist
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile - base: mirror.bit.edu.cn
- extras: mirrors.cn99.com
- updates: