执行远程ssh命令

curl https://xxxxx.txt|sh

 

脚本内容:

echo y | sudo yum install xorg-x11-fonts-Type1
echo y | sudo yum install xorg-x11-fonts-75dpi
sudo wget https://xxx.rpm -O wkhtmltox.rpm
sudo rpm -ivh wkhtmltox.rpm
sudo cp /usr/local/bin/wkhtmlto* /usr/bin/
sudo mkdir -p /usr/share/fonts/zh
sudo wget https://xx.ttf -O /usr/share/fonts/zh/simhei.ttf
sudo fc-cache -fv
posted @ 2022-03-02 10:51  甜菜波波  阅读(38)  评论(0编辑  收藏  举报