1、在终端下输入: sudo apt install php-pdo 2、接着输入:sudo apt install php-mysql 3、重启apache2:输入:sudo systemctl restart apache2