phantomjs安裝

slnngk發表於2024-05-27

環境:
OS:Centos 7

1.下載地址
https://phantomjs.org/download.html

2.新增環境變數
/opt/phantomjs/bin


[root@host134 ~]# which phantomjs
/opt/phantomjs/bin/phantomjs

3.安裝依賴
pip3 install pyecharts
pip3 install pymysql
pip3 install snapshot-phantomjs

/opt/mysql57/bin/mysql -h 192.168.1.14 -uhxl -pmysql

4.亂碼問題
yum install bitmap-fonts bitmap-fonts-cjk

5.字型大小

相關文章