用这个命令:
sudo php -m | grep "curl"
如果没有安装,在 Ubuntu 上用下面的命令安装 php7.2-curl:
sudo apt-get install php7.2-curl